]> granicus.if.org Git - php/commitdiff
Added missing zend_parse_parameters_none() to mb_list_encodings()
authorKalle Sommer Nielsen <kalle@php.net>
Sun, 3 Apr 2016 00:28:39 +0000 (02:28 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Sun, 3 Apr 2016 00:28:39 +0000 (02:28 +0200)
ext/mbstring/mbstring.c

index 796c4828652703f9d8d9ee69f549d90286f317b4..514c4fc1b6886303b911ffc5d72d0a1ba1ebc82b 100644 (file)
@@ -3443,6 +3443,10 @@ PHP_FUNCTION(mb_list_encodings)
        const mbfl_encoding *encoding;
        int i;
 
+       if (zend_parse_parameters_none() == FAILURE) {
+               return;
+       }
+
        array_init(return_value);
        i = 0;
        encodings = mbfl_get_supported_encodings();