From 080f45871893789f67096bb6cf9a1482e952a6fb Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 25 Mar 2023 10:30:02 +0100 Subject: [PATCH] Fix GH-10928: PHP Build Failed - Test curl_version() basic functionality [ext/curl/tests/curl_version_basic_001.phpt] It's possible that curl was compiled without SSL, and/or without libz support. In the case of the issue reporter it was without libz support. This causes the test to fail because we expect a non-empty string. Fix it by using %S instead of %s to allow empty strings. --- ext/curl/tests/curl_version_basic_001.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/curl/tests/curl_version_basic_001.phpt b/ext/curl/tests/curl_version_basic_001.phpt index 6bc361badef9c..52652822a308f 100644 --- a/ext/curl/tests/curl_version_basic_001.phpt +++ b/ext/curl/tests/curl_version_basic_001.phpt @@ -22,6 +22,6 @@ int(%i) int(%i) string(%i) "%s" string(%i) "%s" -string(%i) "%s" -string(%i) "%s" +string(%i) "%S" +string(%i) "%S" bool(true)