@@ -1467,6 +1467,9 @@ static PHP_MINFO_FUNCTION(cgi)
1467
1467
}
1468
1468
/* }}} */
1469
1469
1470
+ ZEND_BEGIN_ARG_INFO (cgi_fcgi_sapi_no_arginfo , 0 )
1471
+ ZEND_END_ARG_INFO ()
1472
+
1470
1473
PHP_FUNCTION (fastcgi_finish_request ) /* {{{ */
1471
1474
{
1472
1475
fcgi_request * request = (fcgi_request * ) SG (server_context );
@@ -1489,9 +1492,6 @@ PHP_FUNCTION(fastcgi_finish_request) /* {{{ */
1489
1492
}
1490
1493
/* }}} */
1491
1494
1492
- ZEND_BEGIN_ARG_INFO (cgi_fcgi_sapi_no_arginfo , 0 )
1493
- ZEND_END_ARG_INFO ()
1494
-
1495
1495
PHP_FUNCTION (apache_request_headers ) /* {{{ */
1496
1496
{
1497
1497
fcgi_request * request ;
@@ -1510,16 +1510,19 @@ PHP_FUNCTION(apache_request_headers) /* {{{ */
1510
1510
* Returns the status of the fastcgi process manager */
1511
1511
PHP_FUNCTION (fpm_get_status ) /* {{{ */
1512
1512
{
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 )) {
1515
1518
RETURN_FALSE ;
1516
1519
}
1517
1520
}
1518
1521
/* }}} */
1519
1522
1520
1523
static const zend_function_entry cgi_fcgi_sapi_functions [] = {
1521
1524
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 )
1523
1526
PHP_FE (apache_request_headers , cgi_fcgi_sapi_no_arginfo )
1524
1527
PHP_FALIAS (getallheaders , apache_request_headers , cgi_fcgi_sapi_no_arginfo )
1525
1528
PHP_FE_END
0 commit comments