From f8a9b8160da6ebee065ae70c31bc3819373dc620 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 17 Dec 2024 15:19:45 +0100 Subject: [PATCH] Run stream_server_reneg_limit.phpt on Windows, too As is, the client code may block on Windows when trying to read STDERR; if that happens, neither the openssl nor the php processes would be terminated, causing further issues for the test suite. We fix this by using `stream_select()` and only read if there is data available. This may cause some delay until we hit the timeout, but it might be necessary to "empty" STDERR. --- ext/openssl/tests/stream_server_reneg_limit.phpt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ext/openssl/tests/stream_server_reneg_limit.phpt b/ext/openssl/tests/stream_server_reneg_limit.phpt index d84906c81ca75..f4bb6b52a80ba 100644 --- a/ext/openssl/tests/stream_server_reneg_limit.phpt +++ b/ext/openssl/tests/stream_server_reneg_limit.phpt @@ -7,9 +7,6 @@ openssl if (!function_exists("proc_open")) die("skip no proc_open"); exec('openssl help', $out, $code); if ($code > 0) die("skip couldn't locate openssl binary"); -if(substr(PHP_OS, 0, 3) == 'WIN') { - die('skip not suitable for Windows'); -} ?> --FILE-- 0) { fgets($stderr); }