|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-01 20:45 UTC] jani@php.net
[2008-11-01 22:36 UTC] david at grudl dot com
[2008-11-01 22:51 UTC] scottmac@php.net
[2008-11-01 23:11 UTC] david at grudl dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 20:00:02 2025 UTC |
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