We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc15db4 commit a8495ebCopy full SHA for a8495eb
ext/standard/head.c
@@ -378,6 +378,9 @@ PHP_FUNCTION(http_response_code)
378
379
if (SG(sapi_headers).http_status_line) {
380
php_error_docref(NULL, E_WARNING, "Calling http_response_code() after header('HTTP/...') has no effect. This will change in PHP 9.0");
381
+ // TODO: Uncomment in PHP-9.0
382
+ // efree(SG(sapi_headers).http_status_line);
383
+ // SG(sapi_headers).http_status_line = NULL;
384
}
385
386
zend_long old_response_code;
0 commit comments