ID: 43335
Updated by: [EMAIL PROTECTED]
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-19 (snap)
New Comment:
It means it doesn't have any effect except inside that method..
And this isn't any different from how it works in 5.2 -> bogus.
Previous Comments:
------------------------------------------------------------------------
[2007-11-19 12:29:21] felipensp at gmail dot com
Description:
------------
Manual says:
"Note: It is not possible to unset $this inside an object method since
PHP 5."
Reproduce code:
---------------
<?php
class foo {
public function __construct() {
unset($this);
var_dump($this);
}
}
new foo;
Expected result:
----------------
object(foo)#1 (0) {
}
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43335&edit=1