Bug #7899 Updated: Class selfdestruct
| From: | jan@php.net | Date: | Sun, 06 Jan 2002 17:17:23 +0000 |
| Subject: | Bug #7899 Updated: Class selfdestruct | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76061@lists.php.net to get a copy of this message | ||
ID: 7899
Updated by: jan
Reported By: wico@cnh.nl
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 4.0 Latest CVS (21/11/2000)
New Comment:
we'll have destructors and more improved OO with ZE2 (PHP5). please
propose anything to engine2@lists.zend.com. closing
Previous Comments:
------------------------------------------------------------------------
[2000-11-21 04:41:15] wico@cnh.nl
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 this bug report at http://bugs.php.net/?id=7899&edit=1