#30776 [Fbk->Opn]: unreadable answer from parser
| From: | rob at alterlinks dot fr | Date: | Sat, 13 Nov 2004 20:36:34 +0000 |
| Subject: | #30776 [Fbk->Opn]: unreadable answer from parser | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69015@lists.php.net to get a copy of this message | ||
ID: 30776
User updated by: rob at alterlinks dot fr
Reported By: rob at alterlinks dot fr
-Status: Feedback
+Status: Open
Bug Type: *General Issues
Operating System: Linux 2.6.3-7
PHP Version: 5.0.2
New Comment:
Thanks for your reply.
However, can you explain why PHP4 reports a readable error, in relation
to
the misstake I'm maken, as where PHP5 reports me something in Hebrew
while
the error I'm making seems to have nothing to do with classes ??
What is the error it reports you for the code below ?
<?
unset (value);
?>
Previous Comments:
------------------------------------------------------------------------
[2004-11-13 21:16:21] tony2001@php.net
I can't reproduce it.
But I'd advise you to read this:
http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
------------------------------------------------------------------------
[2004-11-13 20:53:32] rob at alterlinks dot fr
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 this bug report at http://bugs.php.net/?id=30776&edit=1