Syntax Check Error

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

Syntax Check Error

Post by ducktape »

Hi all,

I just installed the demo version of "Rapid PHP 2006" version 7.4.0.70 to it try out.

I open a simple PHP page then activated the "PHP Syntax Check" and I got the following error message :


Access violation at address 0081593E in module ‘rapidphp.exe’.
Read of address 00000000.


Could anyone help me to get "PHP Syntax Check" to work properly ?

Thank,

Ducktape
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

Detail, detail

Post by ducktape »

Sorry,

Forgot to let you know that I am using "EasyPHP" version 1.8.0.1

Ducktape
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

What operating system?
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

Operating systeme

Post by ducktape »

Hi chrisjlocke,

I have the French Canadian version of Windows XP home edition with SP2 all up-to-date.

Ducktape
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Post by MikeyB »

Hi

I still get the occasional access violation error in WeBuilder, but it's no way near as often as before.

But unlike last time http://forums.blumentals.net/viewtopic.php?t=889 I cannot point it down to the same routine every time, it is very random this time.
It's not doing a PHP Syntax Check as I don't do PHP!!!
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Haven't tried it on XP yet, but on my Win2000 test box, Rapid PHP and EasyPHP seem to talk OK.

Have you changed any settings in the php.ini file? From a default install, it was moaning about couldn't load php_gd2.dll, so had to remove that extension from the php.ini file. Once I'd done that, it was happy.

I don't know if php.exe is the same from the 'official' download:
http://uk.php.net/get/php-5.2.0-Win32.zip/from/a/mirror

Might be worth trying that one?
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

RapidPHP Syntax Check

Post by ducktape »

Hi all,

Good news and bad news; first off I found a major mistake that I am responsible for :

In the setting menu "Option -Ā» Preferences -Ā» PHP Options" my original path to the PHP Executable (php.exe) was :
"C:\Program Files\EasyPHP1-8\EasyPHP.exe"
which is not the file RapidPHP is expecting so I change it to
"C:\Program Files\EasyPHP1-8\php\php.exe"
(the only php.exe file that I have on my hard drive)

Unfortunately, I now get the following Warning : Unknown():
Unable to load library "./php_gd2.dll" – Le module spécifié est introuvable
(translation : unable to find this module).

I have this file, it is located at
"C:\Program Files\EasyPHP1-8\php\extensions"
but I do not know how to configure RapidPHP to this location.

Any help is appreciated so that I can get the Syntax Check to work and highlight my PHP errors.

Ducktape
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

chrisjlocke wrote:From a default install, it was moaning about couldn't load php_gd2.dll, so had to remove that extension from the php.ini file. Once I'd done that, it was happy.
So, open php.ini and find "php_gd2.dll". Stick a semicolon (;) before the text (so it matches the lines above it) and save. All should be well again.
This won't affect the syntax highlighting or anything, so you won't break anything.
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

PHP Syntax Check

Post by ducktape »

Hi chrisjlocke,

I have made the following change in the "php.ini" directory :

I have replaced :
Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

With the following :
Directory in which the loadable extensions (modules) reside.
extension_dir = "./extensions/" (where "php_gd2.dll" reside")

But now when I launched "PHP Syntax Check" for the following file,
<php>

I do not get any warning from "PHP Syntax Check" that the ECHO command was misspelled.

Any suggestion ?

Ducktape
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

Post by ducktape »

Sorry chrisjlocke, missing text in my previous post,

But now when I launched "PHP Syntax Check" for the following file,
echio("Hello, World!" );

I do not get any warning from "PHP Syntax Check" that the ECHO command was misspelled.

Any suggestion ?

Ducktape
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Just checked in my version of WeBuilder, and that is indeed correct - I get the same results. I assume thats because echoi() could be a user function.

I think the syntax check is only going to check general syntax - ie, the right number of opening and closing brackets, proper nested commands, etc.

As a test, try this line:
echo("Hello, World!"

ie, no closing bracket. It should then moan.

Sorry chrisjlocke, missing text in my previous post,
Posts can be edited, rather than re-post again.
ducktape
Posts: 7
Joined: Wed Jan 17, 2007 6:08 am

Syntax checker

Post by ducktape »

Hi chrisjlocke,

I tried your test suggestion and you are right in saying that RapidPHP check only general syntax of the PHP code.

This is unfortunately since I am looking more for a syntax checker software.

Any good software you know of that youy could recommend to me (not to expensive please, I am a poor student after all).

Tank you,

Ducktape
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

I don't, no - but I'm sure someone else will...
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Version 2007 shall (hopefully) include a debugger.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Karlis wrote:Version 2007 shall (hopefully) include a debugger.
:shock:
Post Reply