ID: 7899
Updated by: jan
Reported By: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] closing

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

[2000-11-21 04:41:15] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to