Skip to content

Commit 751dfc7

Browse files
committed
Merge branch 'PHP-7.3'
2 parents 8217cd2 + c8febbe commit 751dfc7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,9 @@ static PHP_MINFO_FUNCTION(cgi)
14671467
}
14681468
/* }}} */
14691469

1470+
ZEND_BEGIN_ARG_INFO(cgi_fcgi_sapi_no_arginfo, 0)
1471+
ZEND_END_ARG_INFO()
1472+
14701473
PHP_FUNCTION(fastcgi_finish_request) /* {{{ */
14711474
{
14721475
fcgi_request *request = (fcgi_request*) SG(server_context);
@@ -1489,9 +1492,6 @@ PHP_FUNCTION(fastcgi_finish_request) /* {{{ */
14891492
}
14901493
/* }}} */
14911494

1492-
ZEND_BEGIN_ARG_INFO(cgi_fcgi_sapi_no_arginfo, 0)
1493-
ZEND_END_ARG_INFO()
1494-
14951495
PHP_FUNCTION(apache_request_headers) /* {{{ */
14961496
{
14971497
fcgi_request *request;
@@ -1510,16 +1510,19 @@ PHP_FUNCTION(apache_request_headers) /* {{{ */
15101510
* Returns the status of the fastcgi process manager */
15111511
PHP_FUNCTION(fpm_get_status) /* {{{ */
15121512
{
1513-
int error = fpm_status_export_to_zval(return_value);
1514-
if(error){
1513+
if (zend_parse_parameters_none() == FAILURE) {
1514+
return;
1515+
}
1516+
1517+
if (fpm_status_export_to_zval(return_value)) {
15151518
RETURN_FALSE;
15161519
}
15171520
}
15181521
/* }}} */
15191522

15201523
static const zend_function_entry cgi_fcgi_sapi_functions[] = {
15211524
PHP_FE(fastcgi_finish_request, cgi_fcgi_sapi_no_arginfo)
1522-
PHP_FE(fpm_get_status, NULL)
1525+
PHP_FE(fpm_get_status, cgi_fcgi_sapi_no_arginfo)
15231526
PHP_FE(apache_request_headers, cgi_fcgi_sapi_no_arginfo)
15241527
PHP_FALIAS(getallheaders, apache_request_headers, cgi_fcgi_sapi_no_arginfo)
15251528
PHP_FE_END

0 commit comments

Comments
 (0)