Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18722 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65879 invoked by uid 1010); 8 Sep 2005 19:35:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65863 invoked from network); 8 Sep 2005 19:35:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2005 19:35:34 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:55562] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 65/1F-23233-58290234 for ; Thu, 08 Sep 2005 15:35:34 -0400 Received: (qmail 27111 invoked from network); 8 Sep 2005 19:35:29 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 8 Sep 2005 19:35:29 -0000 Message-ID: <6.2.3.4.2.20050908123426.046c2840@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 08 Sep 2005 12:35:25 -0700 To: Stanislav Malyshev ,Wez Furlong Cc: Sara Golemon ,internals@lists.php.net In-Reply-To: References: <002301c5b40d$0f75a570$85901a44@lighthammer> <4e89b42605090805185f916d96@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] zend_list_delete() doesn't. From: andi@zend.com (Andi Gutmans) At 07:56 AM 9/8/2005, Stanislav Malyshev wrote: >WF>>IMO, "hard kill" doesn't really fit in a system that uses reference >WF>>counts; you either use reference counts, or don't. There are cases > >Obviously, we have here conflicting requirements - on the one side, >fclose($a) should invalidate resourse, on the other side, oci_close($a) >should not. I'm not sure it is possible to satisfy both of these >requirements... I think it is, in a way Sara pointed out. In OCI's case you decrement the refcount and NULL the zval to make sure you don't scew the refcount. In fclose() you'd just force the resource to be deleted and have stale references to it (which is perfect fine in PHP). Andi