|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-19 13:16 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 06:00:02 2025 UTC |
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