ID: 46452 Updated by: [EMAIL PROTECTED] Reported By: david at grudl dot com -Status: Open +Status: Bogus Bug Type: Compile Failure -Operating System: +Operating System: * PHP Version: 5.2.7RC2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2008-11-01 14:20:31] david at grudl dot com Description: ------------ Whitespace after object separator -> may cause failure of parser. (it is fixed in PHP 5.3) BTW: is '->' called object separator, or what is the right name? Reproduce code: --------------- class Foo { } $foo = new Foo; $foo->class = 10; // OK $foo->class(10); // OK $foo-> class = 10; // Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE $foo-> class(10); // Parse error too ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46452&edit=1