From:             [EMAIL PROTECTED]
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

Reply via email to