]> granicus.if.org Git - php/commitdiff
Fix wrong codes #55817
authorXinchen Hui <laruence@php.net>
Fri, 30 Sep 2011 13:34:07 +0000 (13:34 +0000)
committerXinchen Hui <laruence@php.net>
Fri, 30 Sep 2011 13:34:07 +0000 (13:34 +0000)
ext/mbstring/mbstring.c

index 72efcca009ee483f8222d7cad794c386764e65cd..7501343fee904f4d6ecdb2011d1ff16d74bae998 100644 (file)
@@ -3017,7 +3017,7 @@ PHP_FUNCTION(mb_detect_encoding)
        /* make encoding list */
        list = NULL;
        size = 0;
-       if (ZEND_NUM_ARGS() >= 2 && Z_STRVAL_P(encoding_list)) {
+       if (ZEND_NUM_ARGS() >= 2) {
                switch (Z_TYPE_P(encoding_list)) {
                case IS_ARRAY:
                        if (!php_mb_parse_encoding_array(encoding_list, &list, &size, 0 TSRMLS_CC)) {