Re: resource problem, advice wanted

From: Date: Sat, 04 May 2002 14:31:31 +0000
Subject: Re: resource problem, advice wanted
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-83690@lists.php.net to get a copy of this message
On Fri, May 03, 2002 at 03:34:46PM +0300, Zeev Suraski wrote: > If ldap_first_entry() relies on the resource that is passed onto it, then > it should add a reference count to it, using zend_list_addref(). The > resource ldap_first_entry returns should be responsible for this reference, > and its destructor should call zend_list_delete(). Then, only when no > resources need the resource returned by ldap_read(), it'll be allowed to be > freed. Thanks, I've done that now. If you (or anyone else) have the time, please review the ldap.c changes I just committed. Stig

« previous php.dev (#83690) next »