From 086edf7a3cec4f028ac386ad11cbebbd5eaf71ec Mon Sep 17 00:00:00 2001 From: Edmond Date: Thu, 13 Aug 2026 07:34:37 +0000 Subject: [PATCH] tests: accept either attribution of the socket send warning The write into the closed pipe runs either inside curl_exec() / curl_multi_exec() or from the event loop while the coroutine waits, and php_error_docref() prefixes the warning accordingly: the function name and the call site in the first case, "Unknown" and line 0 in the second. Both tests pinned the second form, so ALPINE_X64_DEBUG_ZTS failed in the OpCache step once the transfer finished synchronously. --- tests/curl/025-write_file_broken_pipe.phpt | 2 +- tests/curl/054-multi_write_file_broken_pipe.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/curl/025-write_file_broken_pipe.phpt b/tests/curl/025-write_file_broken_pipe.phpt index b0be7e4..207a90b 100644 --- a/tests/curl/025-write_file_broken_pipe.phpt +++ b/tests/curl/025-write_file_broken_pipe.phpt @@ -46,7 +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 +Warning: %sSend of %d bytes failed with errno=%d %s in %s on line %d 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 604bec8..657cb9f 100644 --- a/tests/curl/054-multi_write_file_broken_pipe.phpt +++ b/tests/curl/054-multi_write_file_broken_pipe.phpt @@ -60,7 +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 +Warning: %sSend of %d bytes failed with errno=%d %s in %s on line %d Transfer result: CURLE_WRITE_ERROR curl_errno: CURLE_WRITE_ERROR Done