diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-16 21:53:17 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-16 21:53:17 +0000 |
commit | a316ff791c0197c1845c10cc9da7fbab4b077dc3 (patch) | |
tree | 1b39219a5e4f7f356e4667c93492402ec03b523e | |
parent | 459ed2b1ad1727f032a3f4bfb799a48a6b38ec01 (diff) | |
download | php-git-a316ff791c0197c1845c10cc9da7fbab4b077dc3.tar.gz |
*** empty log message ***
-rw-r--r-- | ext/ldap/ldap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index e68d4ca1e9..20853da281 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -803,7 +803,7 @@ PHP_FUNCTION(ldap_get_entries) attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); } - tmp1 = (pval *) emalloc(sizeof(pval)); + MAKE_STD_ZVAL(tmp1); array_init(tmp1); attr_count = 0; @@ -812,7 +812,7 @@ PHP_FUNCTION(ldap_get_entries) ldap_value = ldap_get_values(ldap, ldap_result_entry, attribute); num_values = ldap_count_values(ldap_value); - tmp2 = (pval *) emalloc(sizeof(pval)); + MAKE_STD_ZVAL(tmp2); array_init(tmp2); add_assoc_long(tmp2, "count", num_values); for(i=0; i<num_values; i++) { @@ -949,7 +949,7 @@ PHP_FUNCTION(ldap_get_attributes) ldap_value = ldap_get_values(ldap, ldap_result_entry, attribute); num_values = ldap_count_values(ldap_value); - tmp = (pval *) emalloc(sizeof(pval)); + MAKE_STD_ZVAL(tmp); array_init(tmp); add_assoc_long(tmp, "count", num_values); for(i=0; i<num_values; i++) { |