#20373 [NEW]: T_OBJECT_OPERATOR parse error should not happen

From: Date: Mon, 11 Nov 2002 23:35:47 +0000
Subject: #20373 [NEW]: T_OBJECT_OPERATOR parse error should not happen
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24637@lists.php.net to get a copy of this message
From: rkb@femkant.dk Operating system: Linux PHP version: 4CVS-2002-11-11 PHP Bug Type: Zend Engine 2 problem Bug description: T_OBJECT_OPERATOR parse error should not happen The following script produces a "Parse error, unexpected T_OBJECT_OPERATOR in ..." message: class A {} class B { var $name = "A"; function test() { new $this->name; } } The following change will succeed: - new $this->name; + $tmp = $this->name; + new $tmp; -- Edit bug report at http://bugs.php.net/?id=20373&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20373&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20373&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20373&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20373&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20373&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20373&r=support Expected behavior: http://bugs.php.net/fix.php?id=20373&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20373&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20373&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20373&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20373&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20373&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20373&r=isapi

« previous php.bugs (#24637) next »