Bug #48337 [Opn->Asn]: Parse error messages getting less descriptive
| From: | tony2001@php.net | Date: | Tue, 08 Jun 2010 13:37:30 +0000 |
| Subject: | Bug #48337 [Opn->Asn]: Parse error messages getting less descriptive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151218@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=48337&edit=1
ID: 48337
Updated by: tony2001@php.net
Reported by: brad at njoe dot com
Summary: Parse error messages getting less descriptive
-Status: Open
+Status: Assigned
Type: Bug
Package: Scripting Engine problem
Operating System: win32 only
PHP Version: 5.2.9
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-05-20 19:13:12] brad at njoe dot com
"as I have proper build tools I get proper error messages as well." --
Does this mean that those who are building the Windows binaries don't
have the 'proper build tools' that were used in the 5.2.7 and earlier
releases?
------------------------------------------------------------------------
[2009-05-20 08:33:04] jani@php.net
Yes, I try things only on *nix and as I have proper build tools I get
proper error messages as well. :)
------------------------------------------------------------------------
[2009-05-19 23:07:44] brad at njoe dot com
No, I don't build PHP myself; all of the versions I tried this with were
the binaries available from PHP.net.
I'm also not 100% sure if it's just with the Windows builds (unless
you've tried it on PHP 5.2.9 on a 'nix box - I just don't have access to
one at the moment).
------------------------------------------------------------------------
[2009-05-19 21:43:55] jani@php.net
Must be something with the windows build. Propably some bison version
issue or something like that. Do you build PHP yourself?
------------------------------------------------------------------------
[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/bug.php?id=48337&edit=1