PHP Syntax Check - RapidPHP 2010

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;
Post Reply
seeds33
Posts: 3
Joined: Sat Feb 20, 2010 4:46 pm

PHP Syntax Check - RapidPHP 2010

Post by seeds33 »

Hi,
I am running RapidPHP 2010 and the PHP Syntax Checker is not picking up missing separators.
I have tried it on two machines and even tried reinstalling but still no joy. It worked fine in 2009 and 2008.

I've gone through the settings and there is nothing obvious to me.
Anyone else notice this??

Thanks.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: PHP Syntax Check - RapidPHP 2010

Post by Gatis »

Hi,
We are using the standard PHP syntax check library provided by http://www.php.net
You can download it also from our site, and the editor will be automatically configured to use it:
http://www.blumentals.net/download/php.php

So, if the syntax checker worked before, it must work also now, unless there is a bug in the syntax check library (very unlikely), or your code is actually allright and there is no bug in it.
Can you give some example of where does not the syntax checker report a problem?
Kind regards,
Gatis Avots
seeds33
Posts: 3
Joined: Sat Feb 20, 2010 4:46 pm

Re: PHP Syntax Check - RapidPHP 2010

Post by seeds33 »

It worked in 2008 and 2009 no problem but since upgrading the below particular error is not being picked up.

$test = $test
Should be $test = $test;

This is the most common error I have found that it doesn't recognize, missing separators.

Thanks.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: PHP Syntax Check - RapidPHP 2010

Post by Gatis »

If it worked before, then it means that the syntax library works differently. Maybe this is somehow configurable using some config file shipped with the syntax check library.

However, there is really no bug. The code with single line is fine without a semicolon.
The last line can be without semicolon, but no other exceptions are allowed.
For example, this would not pass without an error message:
$test = $test
$test = $test;

But this would validate without errors:
$test = $test;
$test = $test
Kind regards,
Gatis Avots
seeds33
Posts: 3
Joined: Sat Feb 20, 2010 4:46 pm

Re: PHP Syntax Check - RapidPHP 2010

Post by seeds33 »

I understand the semicolon is not needed on a last line but that is not the case.

I'll check the syntax library.

Thanks.
Post Reply