Re: zend_list_delete() doesn't.
| From: | Andi Gutmans | Date: | Thu, 08 Sep 2005 19:35:25 +0000 |
| Subject: | Re: zend_list_delete() doesn't. | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18722@lists.php.net to get a copy of this message | ||
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