|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-02 05:15 UTC] sander@php.net
[2003-03-02 12:07 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Feb 05 15:00:01 2026 UTC |
Consider the following snippet: class foo { var $bar = 'foo'; } $foo = new foo(); $bar = new $foo->bar; // let's call this line 5 It runs fine on ZE1, but ZE2 bails out with "parse error, unexpected T_OBJECT_OPERATOR on line 5". This works fine, though: $tmp = $foo->bar; $bar = new $tmp;