#47575 [Opn]: Re-assign $this
| From: | kacperszurek at gmail dot com | Date: | Thu, 05 Mar 2009 17:25:56 +0000 |
| Subject: | #47575 [Opn]: Re-assign $this | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134438@lists.php.net to get a copy of this message | ||
ID: 47575
User updated by: kacperszurek at gmail dot com
Reported By: kacperszurek at gmail dot com
Status: Open
Bug Type: *General Issues
Operating System: Any
PHP Version: 5.2.9
New Comment:
Description:
------------
Re-assign $this is possible
Reproduce code:
---------------
<?php
$variable = "this";
$$variable = "test";
echo $this; //test
Expected result:
----------------
Fatal error: Cannot re-assign $this in....
Actual result:
--------------
test
Previous Comments:
------------------------------------------------------------------------
[2009-03-05 17:20:05] kacperszurek at gmail dot com
Description:
------------
Re-assign $this is possible
Reproduce code:
---------------
<?php
$variable = "this";
$$variable = "test";
echo $variable; //test
Expected result:
----------------
Fatal error: Cannot re-assign $this in....
Actual result:
--------------
test
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47575&edit=1