#35678 [NoF->Fbk]: php -l doest not report parse error correctly

From: Date: Thu, 03 Aug 2006 07:31:42 +0000
Subject: #35678 [NoF->Fbk]: php -l doest not report parse error correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100256@lists.php.net to get a copy of this message
ID: 35678 Updated by: nathan@php.net Reported By: f dot hardy at origami-systems dot com -Status: No Feedback +Status: Feedback Bug Type: CGI related Operating System: freebsd PHP Version: 5.1.1 New Comment: same issue here, using freebsd 5.3...just checked ive got display_errors = On and error_reporting = E_STRICT atm...php-5.0.4 here. Previous Comments: ------------------------------------------------------------------------ [2005-12-23 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-12-15 13:00:01] tony2001@php.net Are you sure you have display_errors = On and error_reporting = E_ALL? ------------------------------------------------------------------------ [2005-12-15 12:09:39] f dot hardy at origami-systems dot com 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 this bug report at http://bugs.php.net/?id=35678&edit=1

« previous php.bugs (#100256) next »