Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66053 invoked by uid 1010); 1 Jun 2004 14:52:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66029 invoked from network); 1 Jun 2004 14:52:40 -0000 Received: from unknown (HELO distance.intux.org) (213.239.198.8) by pb1.pair.com with SMTP; 1 Jun 2004 14:52:40 -0000 Received: (qmail 21539 invoked from network); 1 Jun 2004 14:48:50 -0000 Received: from unknown (HELO saiwala) (intux?org?fschaper@82.82.158.225) by distance.intux.org with SMTP; 1 Jun 2004 14:48:50 -0000 Message-ID: <008001c447e7$d80ee9d0$9d00a8c0@saiwala> To: "Derick Rethans" Cc: References: <005e01c447e6$9d28bf40$9d00a8c0@saiwala> Date: Tue, 1 Jun 2004 16:50:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] delete in PHP From: fschaper@intux.org ("Florian Schaper") Derick Rethans wrote: > On Tue, 1 Jun 2004, Florian Schaper wrote: > >> An Zend API 2.0 paper I read a while ago said something about >> "delete" being implemented in PHP5. >> However, no delete. >> >> Was this feature dropped? I have implemented delete for myself now >> and was wondering if it was worth committing. > > unset($obj) works just fine too. > My version of delete works like the delete we know from C++. The object's destructor and the object is then released immediately. All references of this object are set to IS_NULL. Some might argue that this is a feature not worth having if you have an garbage collector but I can think about a few uses. ./regards Florian