php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35678 php -l doest not report parse error correctly
Submitted: 2005-12-15 12:09 UTC Modified: 2006-08-11 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: f dot hardy at origami-systems dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.1.1 OS: freebsd
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: f dot hardy at origami-systems dot com
New email:
PHP Version: OS:

 

 [2005-12-15 12:09 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-15 13:00 UTC] tony2001@php.net
Are you sure you have display_errors = On and error_reporting = E_ALL?
 [2005-12-23 01:00 UTC] 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".
 [2006-08-03 07:31 UTC] nathan@php.net
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.
 [2006-08-03 07:51 UTC] tony2001@php.net
It's time for upgrade.
 [2006-08-11 01:00 UTC] 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".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 12:03:34 2022 UTC