#20373 [Opn->Fbk]: T_OBJECT_OPERATOR parse error should not happen
| From: | iliaa@php.net | Date: | Sun, 08 Dec 2002 22:28:29 +0000 |
| Subject: | #20373 [Opn->Fbk]: T_OBJECT_OPERATOR parse error should not happen | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27081@lists.php.net to get a copy of this message | ||
ID: 20373
Updated by: iliaa@php.net
Reported By: rkb@femkant.dk
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Linux
PHP Version: 4CVS-2002-11-11
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-11 17:35:47] rkb@femkant.dk
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 this bug report at http://bugs.php.net/?id=20373&edit=1