ID: 22504
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Duplicate
Bug Type: Zend Engine 2 problem
Operating System: Debian Linux (unstable)
PHP Version: 5CVS-2003-03-02 (dev)
New Comment:
Sorry, this is a dupe of #21669. The bugsystem doesn't show PHP5 bugs
by default... :(
Previous Comments:
------------------------------------------------------------------------
[2003-03-02 05:12:02] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=22504&edit=1