Skip to content

Commit 01ff684

Browse files
committed
apache_response_headers/apache_request_headers using ZPP
1 parent c5bc52b commit 01ff684

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sapi/apache2handler/php_functions.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ PHP_FUNCTION(apache_request_headers)
173173
const apr_array_header_t *arr;
174174
char *key, *val;
175175

176-
if (zend_parse_parameters_none() == FAILURE) {
177-
RETURN_THROWS();
178-
}
176+
ZEND_PARSE_PARAMETERS_NONE();
179177

180178
array_init(return_value);
181179

@@ -196,9 +194,7 @@ PHP_FUNCTION(apache_response_headers)
196194
const apr_array_header_t *arr;
197195
char *key, *val;
198196

199-
if (zend_parse_parameters_none() == FAILURE) {
200-
RETURN_THROWS();
201-
}
197+
ZEND_PARSE_PARAMETERS_NONE();
202198

203199
array_init(return_value);
204200

0 commit comments

Comments
 (0)