Commit 636f84adcfb for php.net
commit 636f84adcfb9be95dacfdfc3d8d0aaebfd190430
Author: Niels Dossche <7771979+ndossche@users.noreply.github.com>
Date: Mon Jan 12 18:47:26 2026 +0100
Fix bug52820 test for new libcurl release
Reference: GH-20910.
diff --git a/ext/standard/tests/file/bug52820.phpt b/ext/standard/tests/file/bug52820.phpt
index 2d3cedad879..06aa3463c4e 100644
--- a/ext/standard/tests/file/bug52820.phpt
+++ b/ext/standard/tests/file/bug52820.phpt
@@ -45,22 +45,22 @@ function do_stuff($url) {
--EXPECTREGEX--
temp stream \(close after\):
About to rewind!
-(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
+(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/
\* [Cc]losing connection( #?-?\d+)?
memory stream \(close after\):
About to rewind!
-(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
+(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/
\* [Cc]losing connection( #?-?\d+)?
temp stream \(leak\):
About to rewind!
-(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
+(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/
\* [Cc]losing connection( #?-?\d+)?
memory stream \(leak\):
About to rewind!
-(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
+(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/
\* [Cc]losing connection( #?-?\d+)?
Done\.