Re: [PHP-DEV] zend_list_delete() doesn't.

2005-09-08 Thread 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 resours

Re: [PHP-DEV] zend_list_delete() doesn't.

2005-09-08 Thread Stanislav Malyshev
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.

Re: [PHP-DEV] zend_list_delete() doesn't.

2005-09-08 Thread Sara Golemon
Stanislav Malyshev Wrote SG>>> $fp1 = fopen('test', 'w'); SG>> $fp2 = $fp1; /* Still a single zval* and le->refcount == 1 */ SG>> $fp3 = &$fp1; /* Two zval*s now and le->refcount == 2 */ SG>> SG>> fclose($fp1); I think this was discussed before, though I may be mistaken. The problem here is that

Re: [PHP-DEV] zend_list_delete() doesn't.

2005-09-08 Thread Wez Furlong
On 9/8/05, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > SG>> SG>> $fp1 = fopen('test', 'w'); > SG>> $fp2 = $fp1; /* Still a single zval* and le->refcount == 1 */ > SG>> $fp3 = &$fp1; /* Two zval*s now and le->refcount == 2 */ > SG>> > SG>> fclose($fp1); > > I think this was discussed before, th

Re: [PHP-DEV] zend_list_delete() doesn't.

2005-09-08 Thread Stanislav Malyshev
SG>>> $fp1 = fopen('test', 'w'); SG>> $fp2 = $fp1; /* Still a single zval* and le->refcount == 1 */ SG>> $fp3 = &$fp1; /* Two zval*s now and le->refcount == 2 */ SG>> SG>> fclose($fp1); I think this was discussed before, though I may be mistaken. The problem here is that you expect fclose to kill