com php-src: Use zend_parse_parameters_none() here : sapi/cgi/cgi_main.c

From: Date: Tue, 16 Jun 2015 13:15:27 +0000
Subject: com php-src: Use zend_parse_parameters_none() here : sapi/cgi/cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87292@lists.php.net to get a copy of this message
Commit: ab4aae5fd7d1bb4493e8d20569ef3511eb1181fb Author: Kalle Sommer Nielsen <kalle@php.net> Tue, 16 Jun 2015 15:15:27 +0200 Parents: 48ed660cdf6fe94ac2cd8eac217ea97340766e75 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ab4aae5fd7d1bb4493e8d20569ef3511eb1181fb Log: Use zend_parse_parameters_none() here Changed paths: M sapi/cgi/cgi_main.c Diff: diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index c14aeb4..f66e81d 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1500,8 +1500,8 @@ static PHP_MINFO_FUNCTION(cgi) PHP_FUNCTION(apache_child_terminate) /* {{{ */ { - if (ZEND_NUM_ARGS() > 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none()) { + return; } if (fcgi_is_fastcgi()) { fcgi_terminate(); @@ -1559,8 +1559,8 @@ static void add_request_header(char *var, unsigned int var_len, char *val, unsig PHP_FUNCTION(apache_request_headers) /* {{{ */ { - if (ZEND_NUM_ARGS() > 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none()) { + return; } array_init(return_value); if (fcgi_is_fastcgi()) {

« previous php.cvs (#87292) next »