PHP 4.0 Bug #7899: Class selfdestruct
| From: | wico at cnh dot nl | Date: | Tue, 21 Nov 2000 09:41:15 +0000 |
| Subject: | PHP 4.0 Bug #7899: Class selfdestruct | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38782@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: any
PHP version: 4.0 Latest CVS (21/11/2000)
PHP Bug Type: Feature/Change Request
Bug description: Class selfdestruct
Hiya
I'd like to see a destructor for classes from within the class
example:
$file = new file("somefile.ext);
// instert some long script here
$file->del_file();
at this point $file should be FALSE of NULL (set from within the class)
some ideas:
unset($this);
or $this->Destruct();
Greetz,
Wico
--
Edit Bug report at: http://bugs.php.net/?id=7899&edit=1