Commit 472518f7b23 for php
commit 472518f7b2334c144bcd9284ef9aa00b1edeac09
Author: David Carlier <devnexen@gmail.com>
Date: Mon Nov 30 10:21:40 2026 +0000
ext/soap: error_handler_keeps_status_line.phpt deprecation failure.
The test read $http_response_header, deprecated as of 8.5.
Close GH-25935
diff --git a/ext/soap/tests/error_handler_keeps_status_line.phpt b/ext/soap/tests/error_handler_keeps_status_line.phpt
index 91c7c59c1da..e572ea437bc 100644
--- a/ext/soap/tests/error_handler_keeps_status_line.phpt
+++ b/ext/soap/tests/error_handler_keeps_status_line.phpt
@@ -29,7 +29,7 @@
php_cli_server_start($code, null, $args);
$body = file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS, false, stream_context_create(['http' => ['ignore_errors' => true]]));
-echo $http_response_header[0], "\n", $body, "\n";
+echo http_get_last_response_headers()[0], "\n", $body, "\n";
?>
--EXPECT--
HTTP/1.1 404 Custom Reason