]> granicus.if.org Git - php/commitdiff
Fixed #68832 (Unchecked return value)
authorXinchen Hui <laruence@php.net>
Sun, 18 Jan 2015 03:19:25 +0000 (22:19 -0500)
committerXinchen Hui <laruence@php.net>
Sun, 18 Jan 2015 03:19:25 +0000 (22:19 -0500)
ext/spl/spl_directory.c

index baf7bb0f7bddd409cd80f547bd7423021c31f8fc..070fa0758470f138b5fdbf140081787f111e020a 100644 (file)
@@ -2080,7 +2080,10 @@ static int spl_filesystem_file_call(spl_filesystem_object *intern, zend_function
                params[1] = *arg2;
        }
 
-       zend_get_parameters_array_ex(pass_num_args, params + (arg2 ? 2 : 1));
+       if (zend_get_parameters_array_ex(pass_num_args, params + (arg2 ? 2 : 1)) != SUCCESS) {
+               efree(params);
+               WRONG_PARAM_COUNT;
+       }
 
        ZVAL_UNDEF(&retval);