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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to