From 919f1984d52298a51643ef4018013cdedc7bf887 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 1 Jan 2025 14:56:32 +0100 Subject: [PATCH] gh15937.phpt does not need to be an online test We convert the test to use the CLI test server to not require online availability. As of PHP 8.3, the test is supposed to fail, because the timeout is too large. Since exactly this scenario is already tested by gh16810.phpt, we drop the test for PHP-8.3 and up. Closes GH-17315. --- ext/standard/tests/streams/gh15937.phpt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ext/standard/tests/streams/gh15937.phpt b/ext/standard/tests/streams/gh15937.phpt index db0564342b13b..0a18f3ca907b4 100644 --- a/ext/standard/tests/streams/gh15937.phpt +++ b/ext/standard/tests/streams/gh15937.phpt @@ -1,16 +1,22 @@ --TEST-- GH-15937 (stream overflow on timeout setting) ---SKIPIF-- - --FILE-- [ 'timeout' => PHP_INT_MAX, ], ]; $ctx = stream_context_create($config); -var_dump(fopen("http://www.example.com", "r", false, $ctx)); +var_dump(fopen("http://" . PHP_CLI_SERVER_ADDRESS . "/test", "r", false, $ctx)); ?> --EXPECTF-- resource(%d) of type (stream)