We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ea03f commit 86287adCopy full SHA for 86287ad
ext/standard/http.c
@@ -364,7 +364,9 @@ PHP_FUNCTION(request_parse_body)
364
365
PHP_FUNCTION(http_get_last_response_headers)
366
{
367
- zend_parse_parameters_none();
+ if (zend_parse_parameters_none() == FAILURE) {
368
+ RETURN_THROWS();
369
+ }
370
371
if (!Z_ISUNDEF(BG(last_http_headers))) {
372
RETURN_COPY_VALUE(return_value, &BG(last_http_headers));
@@ -375,7 +377,9 @@ PHP_FUNCTION(http_get_last_response_headers)
375
377
376
378
PHP_FUNCTION(http_clear_last_response_headers)
379
380
381
382
383
384
zval_ptr_dtor(&BG(last_http_headers));
385
ZVAL_UNDEF(&BG(last_http_headers));
0 commit comments