#48337 [Opn->Fbk]: Parse error messages getting less descriptive
| From: | jani@php.net | Date: | Tue, 19 May 2009 21:43:55 +0000 |
| Subject: | #48337 [Opn->Fbk]: Parse error messages getting less descriptive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137538@lists.php.net to get a copy of this message | ||
ID: 48337
Updated by: jani@php.net
Reported By: brad at njoe dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
-Operating System: Windows
+Operating System: win32 only
PHP Version: 5.2.9
New Comment:
Must be something with the windows build. Propably some bison version
issue or something like that. Do you build PHP yourself?
Previous Comments:
------------------------------------------------------------------------
[2009-05-19 21:29:14] brad at njoe dot com
Description:
------------
Something has changed in the way the PHP parser reports errors during
parsing - it has become slightly less descriptive in certain cases.
As far as I can tell, this change happened sometime AFTER the release
of PHP version 5.2.6 (in this version, the error message was as
expected) - this includes the latest development releases (including PHP
6.0.0-dev).
Reproduce code:
---------------
<?php
echo ; 'Error! Error!';
?>
Expected result:
----------------
Parse error: syntax error, unexpected ';' in (file) on line 3
Actual result:
--------------
Parse error: parse error in (file) on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48337&edit=1