Skip to content

Commit 8e620b4

Browse files
committed
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. Closes GH-10930.
1 parent 57029ce commit 8e620b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/tests/curl_version_basic_001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ int(%i)
2222
int(%i)
2323
string(%i) "%s"
2424
string(%i) "%s"
25-
string(%i) "%s"
26-
string(%i) "%s"
25+
string(%i) "%S"
26+
string(%i) "%S"
2727
bool(true)

0 commit comments

Comments
 (0)