#30776 [NEW]: unreadable answer from parser
| From: | rob at alterlinks dot fr | Date: | Sat, 13 Nov 2004 19:53:33 +0000 |
| Subject: | #30776 [NEW]: unreadable answer from parser | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-69011@lists.php.net to get a copy of this message | ||
From: rob at alterlinks dot fr
Operating system: Linux 2.6.3-7
PHP version: 5.0.2
PHP Bug Type: *General Issues
Bug description: unreadable answer from parser
Description:
------------
Please see bug #28243
I know, as reported, it is maybe *not* a bug, one has to use the correct
syntax !
But, when using
<?
unset (variable)
?>
the parser result : expecting T_PAAMAYIM_NEKUDOTAYIM
is not understandable, at least not to me.
PHP4 returns an understandble code.
Reproduce code:
---------------
<?
unset (variable);
?>
(indeed, the above code is *incorrect*, it's only to provoque de parser's
return code)
Expected result:
----------------
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$'
in /var/www/sites/premiere/phpinfo.php on line 2
Actual result:
--------------
Parse error: parse error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM
in /var/www/sites/bios/phpinfo.php on line 2
--
Edit bug report at http://bugs.php.net/?id=30776&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30776&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30776&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30776&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30776&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30776&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30776&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30776&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30776&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30776&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30776&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30776&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30776&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30776&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30776&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30776&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30776&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30776&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30776&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30776&r=mysqlcfg