fix test for PHP<master
authorMichael Wallner <mike@php.net>
Tue, 27 Aug 2024 13:24:13 +0000 (15:24 +0200)
committerMichael Wallner <mike@php.net>
Tue, 27 Aug 2024 13:24:13 +0000 (15:24 +0200)
tests/info002.phpt

index 46bfcf5fa706067844bbbaba1e537d408898e130..ab1dab4bfd59a6e26f7b261146bcc85893e7ce52 100644 (file)
@@ -37,13 +37,13 @@ Test
 http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\057' at pos 4 of 'HTTP/1.1 99 Apples in my Basket' in %sinfo002.php:%d
 Stack trace:
 #0 %sinfo002.php(%d): http\Message->__construct('HTTP/1.1 99 App...')
-#1 %sinfo002.php(%d): {closure%s}()
+#1 %sinfo002.php(%d): {%s}()
 #2 %sinfo002.php(%d): trap(Object(Closure))
 #3 {main}
 http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 7 of 'CONNECT HTTP/1.1' in %sinfo002.php:%d
 Stack trace:
 #0 %sinfo002.php(%d): http\Message->__construct('CONNECT HTTP/1....')
-#1 %sinfo002.php(%d): {closure%s}()
+#1 %sinfo002.php(%d): {%s}()
 #2 %sinfo002.php(%d): trap(Object(Closure))
 #3 {main}
 HTTP/1.1 200