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:
I'm happy for you, for me it doesn't with PHP 5.0.2. It does with PHP4, not with PHP5.0.2 (the exact same code). Either it's fixed in whatever version you're using, either I can't conclude otherwise than that there is a difference in behaviour between my PHP4 and PHP5.0.2 Anyway, lets forget about it, it's not that big of a deal, I guess I'll just have to go learn Hebrew ;) Previous Comments: ------------------------------------------------------------------------ [2004-11-13 21:40:38] [EMAIL PROTECTED] It reports exactly what you have expected: "Parse error: parse error, unexpected T_VAR, expecting T_STRING or T_VARIABLE or '$' in .." ------------------------------------------------------------------------ [2004-11-13 21:36:33] rob at alterlinks dot fr 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); ?> ------------------------------------------------------------------------ [2004-11-13 21:16:21] [EMAIL PROTECTED] 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