#20373 [Com]: T_OBJECT_OPERATOR parse error should not happen
ID: 20373
Comment by: jonny at sanriowasteland dot net
Reported By: rkb at femkant dot dk
Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: Linux
PHP Version: 4CVS-2002-11-11
New Comment:
I tested the code givin with PHP5 beta 2, and everything works as
expected.
Previous Comments:
------------------------------------------------------------------------
[2003-01-02 18:38:58] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2002-12-08 16:28:29] iliaa@php.net
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
------------------------------------------------------------------------
[2002-11-11 17:35:47] rkb at femkant dot 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
Thread (4 messages)