Skip to content

Commit a8495eb

Browse files
committed
[skip ci] Keep code for PHP 9.0 in comment
1 parent fc15db4 commit a8495eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/standard/head.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ PHP_FUNCTION(http_response_code)
378378

379379
if (SG(sapi_headers).http_status_line) {
380380
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;
381384
}
382385

383386
zend_long old_response_code;

0 commit comments

Comments
 (0)