#22504 [NEW]: new $foo->bar causes parse error

From: Date: Sun, 02 Mar 2003 11:12:02 +0000
Subject: #22504 [NEW]: new $foo->bar causes parse error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34613@lists.php.net to get a copy of this message
From: sander@php.net Operating system: Debian Linux (unstable) PHP version: 5CVS-2003-03-02 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: new $foo->bar causes parse error 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; -- Edit bug report at http://bugs.php.net/?id=22504&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22504&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22504&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22504&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22504&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22504&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22504&r=support Expected behavior: http://bugs.php.net/fix.php?id=22504&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22504&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22504&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22504&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22504&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22504&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22504&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22504&r=gnused

« previous php.bugs (#34613) next »