ID:               47575
 Updated by:       [email protected]
 Reported By:      kacperszurek at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Any
 PHP Version:      5.2.9
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Sure, you can do this... just not in an object context


Previous Comments:
------------------------------------------------------------------------

[2009-03-05 17:25:55] kacperszurek at gmail dot com

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

------------------------------------------------------------------------

[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

Reply via email to