]> granicus.if.org Git - php/commitdiff
Add missing zend_parse_parameters_none() for flush()
authorReeze Xia <reeze@php.net>
Tue, 3 Mar 2015 10:37:47 +0000 (18:37 +0800)
committerReeze Xia <reeze@php.net>
Tue, 3 Mar 2015 10:37:47 +0000 (18:37 +0800)
ext/standard/basic_functions.c

index 26f72098bf10a2a6192f5430a5f8454ed3d909ca..f1c671d532a050efbfefadde958d9ccb16cdab81 100644 (file)
@@ -4384,6 +4384,10 @@ PHP_FUNCTION(getopt)
    Flush the output buffer */
 PHP_FUNCTION(flush)
 {
+       if (zend_parse_parameters_none() == FAILURE) {
+               return;
+       }
+
        sapi_flush();
 }
 /* }}} */