#35678 [NEW]: php -l doest not report parse error correctly
| From: | f dot hardy at origami-systems dot com | Date: | Thu, 15 Dec 2005 11:09:40 +0000 |
| Subject: | #35678 [NEW]: php -l doest not report parse error correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-90456@lists.php.net to get a copy of this message | ||
From: f dot hardy at origami-systems dot com
Operating system: freebsd
PHP version: 5.1.1
PHP Bug Type: CGI related
Bug description: php -l doest not report parse error correctly
Description:
------------
php -l aFile.php does not report correctly parse error.
PHP 5.0.4 say : PHP Parse error: parse error, unexpected T_STRING,
expecting ',' or ';' in selects.php on line 6
PHP 5.1.1 say : Errors parsing selects.php
Reproduce code:
---------------
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
echo '<pre>'
var_dump($_POST);
echo '</pre>';
}
Expected result:
----------------
PHP Parse error: parse error, unexpected T_STRING, expecting ',' or ';'
in selects.php on line 6
Actual result:
--------------
Errors parsing selects.php
--
Edit bug report at http://bugs.php.net/?id=35678&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35678&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35678&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35678&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35678&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35678&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35678&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35678&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35678&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35678&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35678&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35678&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35678&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35678&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35678&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35678&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35678&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35678&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35678&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35678&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35678&r=mysqlcfg