]> granicus.if.org Git - php/commitdiff
MFH
authorfoobar <sniper@php.net>
Sat, 9 Jul 2005 01:00:11 +0000 (01:00 +0000)
committerfoobar <sniper@php.net>
Sat, 9 Jul 2005 01:00:11 +0000 (01:00 +0000)
ext/ldap/ldap.c

index 2b4526af52c5df0ff2818b3283c131f91fa7914b..c1568a7a3a289e7fb075ade3263b44a95d66abe0 100644 (file)
@@ -730,7 +730,6 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
 
                                /* If anything else than string is passed, ldap_base_dn = NULL */
                                if (Z_TYPE_PP(base_dn) == IS_STRING) {
-                                       convert_to_string_ex(base_dn);
                                        ldap_base_dn = Z_STRVAL_PP(base_dn);
                                }
                        }
@@ -770,7 +769,6 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
                        nbases = 0; /* this means string, not array */
                        /* If anything else than string is passed, ldap_base_dn = NULL */
                        if (Z_TYPE_PP(base_dn) == IS_STRING) {
-                               convert_to_string_ex(base_dn);
                                ldap_base_dn = Z_STRVAL_PP(base_dn);
                        } else {
                                ldap_base_dn = NULL;
@@ -815,7 +813,6 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
 
                                /* If anything else than string is passed, ldap_base_dn = NULL */
                                if (Z_TYPE_PP(entry) == IS_STRING) {
-                                       convert_to_string_ex(entry);
                                        ldap_base_dn = Z_STRVAL_PP(entry);
                                } else {
                                        ldap_base_dn = NULL;