Commit:    f55bed9dad0ffbec170b857c0b3b1b33426fe9d5
Author:    Remi Collet <r...@php.net>         Sat, 24 Nov 2012 15:00:03 +0100
Parents:   8a84b1b5d9ccb78cff61f386a6a92737ac091ee2
Branches:  PHP-5.3

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=f55bed9dad0ffbec170b857c0b3b1b33426fe9d5

Log:
Fixed Bug #63126 DISABLE_AUTHENTICATOR ignores array

Bugs:
https://bugs.php.net/63126

Changed paths:
  M  ext/imap/php_imap.c


Diff:
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 802bb51..d81a754 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -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");


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to