From 903d64c776dbeafbbe85a2508b5064a32069e18c Mon Sep 17 00:00:00 2001 From: Edmond <1571649+edmonddantes@users.noreply.github.com> Date: Thu, 6 Aug 2026 08:35:38 +0000 Subject: [PATCH] tests: follow upstream diagnostics for fopen() and socket send errors php-src master now reports the failed fopen() without the URL in the message, and a failed socket send is a warning rather than a notice. --- tests/curl/025-write_file_broken_pipe.phpt | 1 + tests/curl/054-multi_write_file_broken_pipe.phpt | 1 + tests/io/082-http_negative_timeout_poll_leak.phpt | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/curl/025-write_file_broken_pipe.phpt b/tests/curl/025-write_file_broken_pipe.phpt index f2f95b53..b0be7e41 100644 --- a/tests/curl/025-write_file_broken_pipe.phpt +++ b/tests/curl/025-write_file_broken_pipe.phpt @@ -46,6 +46,7 @@ async_test_server_stop($server); echo "Done\n"; ?> --EXPECTF-- +Warning: Unknown: Send of %d bytes failed with errno=%d %s in Unknown on line 0 curl_exec returned: false errno: 23 is write error: yes diff --git a/tests/curl/054-multi_write_file_broken_pipe.phpt b/tests/curl/054-multi_write_file_broken_pipe.phpt index b19925bd..604bec8b 100644 --- a/tests/curl/054-multi_write_file_broken_pipe.phpt +++ b/tests/curl/054-multi_write_file_broken_pipe.phpt @@ -60,6 +60,7 @@ async_test_server_stop($server); echo "Done\n"; ?> --EXPECTF-- +Warning: Unknown: Send of %d bytes failed with errno=%d %s in Unknown on line 0 Transfer result: CURLE_WRITE_ERROR curl_errno: CURLE_WRITE_ERROR Done diff --git a/tests/io/082-http_negative_timeout_poll_leak.phpt b/tests/io/082-http_negative_timeout_poll_leak.phpt index 6feab1fb..e17440c9 100644 --- a/tests/io/082-http_negative_timeout_poll_leak.phpt +++ b/tests/io/082-http_negative_timeout_poll_leak.phpt @@ -29,5 +29,5 @@ var_dump(fopen($uri, "r", false, $ctx)); --EXPECTF-- resource(%d) of type (stream) -Warning: fopen(http://%s): Failed to open stream: timeout must be lower than %d in %s on line %d +Warning: fopen(): Failed to open stream: timeout must be lower than %d in %s on line %d bool(false)