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.
PHP Syntax Check - RapidPHP 2010
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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;
Re: PHP Syntax Check - RapidPHP 2010
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?
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
Gatis Avots
Re: PHP Syntax Check - RapidPHP 2010
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.
$test = $test
Should be $test = $test;
This is the most common error I have found that it doesn't recognize, missing separators.
Thanks.
Re: PHP Syntax Check - RapidPHP 2010
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
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
Gatis Avots
Re: PHP Syntax Check - RapidPHP 2010
I understand the semicolon is not needed on a last line but that is not the case.
I'll check the syntax library.
Thanks.
I'll check the syntax library.
Thanks.