]> granicus.if.org Git - php/commitdiff
Fixed Bug #63126 DISABLE_AUTHENTICATOR ignores array
authorRemi Collet <remi@php.net>
Sat, 24 Nov 2012 14:00:03 +0000 (15:00 +0100)
committerRemi Collet <remi@php.net>
Sat, 24 Nov 2012 14:00:03 +0000 (15:00 +0100)
ext/imap/php_imap.c

index 802bb5164383a6c25c92d111063a98209723d78d..d81a7548555d8e05c4e2ecde7df121d24d426486 100644 (file)
@@ -1191,7 +1191,7 @@ static void php_imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                                                        if (zend_hash_index_find(Z_ARRVAL_PP(disabled_auth_method), i, (void **) &z_auth_method) == SUCCESS) {
                                                                if (Z_TYPE_PP(z_auth_method) == IS_STRING) {
                                                                        if (Z_STRLEN_PP(z_auth_method) > 1) {
-                                                                               mail_parameters (NIL, DISABLE_AUTHENTICATOR, (void *)Z_STRVAL_PP(disabled_auth_method));
+                                                                               mail_parameters (NIL, DISABLE_AUTHENTICATOR, (void *)Z_STRVAL_PP(z_auth_method));
                                                                        }
                                                                } else {
                                                                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid argument, expect string or array of strings");