diff options
author | Stig Venaas <venaas@php.net> | 2001-12-01 14:17:43 +0000 |
---|---|---|
committer | Stig Venaas <venaas@php.net> | 2001-12-01 14:17:43 +0000 |
commit | cdedea01c108dd28fe8699fb874aa0fca2346e69 (patch) | |
tree | 0b933363e46af4acbb0a584f2ab293e81981adca | |
parent | c0e263c1a194627e8cb8caa7710866d4f9a805ba (diff) | |
download | php-git-cdedea01c108dd28fe8699fb874aa0fca2346e69.tar.gz |
Fixing ldap_first/next_attribute()
-rw-r--r-- | ext/ldap/ldap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 89142476aa..4d0412c96f 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -210,6 +210,7 @@ PHP_MINIT_FUNCTION(ldap) le_result = zend_register_list_destructors_ex(_free_ldap_result, NULL, "ldap result", module_number); le_link = zend_register_list_destructors_ex(_close_ldap_link, NULL, "ldap link", module_number); le_result_entry = zend_register_list_destructors_ex(NULL, NULL, "ldap result entry", module_number); + le_ber_entry = zend_register_list_destructors_ex(NULL, NULL, "ldap ber entry", module_number); ldap_module_entry.type = type; @@ -990,7 +991,7 @@ PHP_FUNCTION(ldap_first_attribute) if ((attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber)) == NULL) { RETURN_FALSE; } else { - ZEND_REGISTER_RESOURCE(return_value, ber, le_ber_entry); + ZEND_REGISTER_RESOURCE(*berp, ber, le_ber_entry); RETVAL_STRING(attribute, 1); #if ( LDAP_API_VERSION > 2000 ) || HAVE_NSLDAP || WINDOWS @@ -1021,7 +1022,7 @@ PHP_FUNCTION(ldap_next_attribute) if ((attribute = ldap_next_attribute(ldap, ldap_result_entry, ber)) == NULL) { RETURN_FALSE; } else { - ZEND_REGISTER_RESOURCE(return_value, ber, le_ber_entry); + ZEND_REGISTER_RESOURCE(*berp, ber, le_ber_entry); RETVAL_STRING(attribute, 1); #if ( LDAP_API_VERSION > 2000 ) || HAVE_NSLDAP || WINDOWS |