Re: [PHP-DEV] resource problem, advice wanted

2002-05-04 Thread Stig Venaas
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 i

Re: [PHP-DEV] resource problem, advice wanted

2002-05-03 Thread Zeev Suraski
At 12:02 01/05/2002, Stig Venaas wrote: >This is a bit involved, I'll try to explain. I'm trying to fix a >problem in the LDAP extension, but not sure how best to do it. > >The issue is that code like > >$e = ldap_first_entry($ds, ldap_read($ds,$dn,"objectClass=*")); >$a = ldap_get_attributes($ds,

[PHP-DEV] resource problem, advice wanted

2002-05-01 Thread Stig Venaas
This is a bit involved, I'll try to explain. I'm trying to fix a problem in the LDAP extension, but not sure how best to do it. The issue is that code like $e = ldap_first_entry($ds, ldap_read($ds,$dn,"objectClass=*")); $a = ldap_get_attributes($ds, $e); crashes. What happens is that ldap_read