mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
feat: use modern ZEND_PARSE_PARAMETERS_NONE() macro (#1704)
This commit is contained in:
committed by
GitHub
parent
80de1f8bc7
commit
29c88c0fec
12
frankenphp.c
12
frankenphp.c
@@ -248,9 +248,7 @@ static int frankenphp_worker_request_startup() {
|
||||
}
|
||||
|
||||
PHP_FUNCTION(frankenphp_finish_request) { /* {{{ */
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (go_is_context_done(thread_index)) {
|
||||
RETURN_FALSE;
|
||||
@@ -318,9 +316,7 @@ PHP_FUNCTION(frankenphp_getenv) {
|
||||
|
||||
/* {{{ Fetch all HTTP request headers */
|
||||
PHP_FUNCTION(frankenphp_request_headers) {
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
struct go_apache_request_headers_return headers =
|
||||
go_apache_request_headers(thread_index);
|
||||
@@ -378,9 +374,7 @@ static void add_response_header(sapi_header_struct *h,
|
||||
|
||||
PHP_FUNCTION(frankenphp_response_headers) /* {{{ */
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
array_init(return_value);
|
||||
zend_llist_apply_with_argument(
|
||||
|
||||
Reference in New Issue
Block a user