Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c25577

Browse files
committed
fix test attempt
1 parent bf9c881 commit 1c25577

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎ext/curl/tests/gh18458.phpt‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ include 'skipif-nocaddy.inc';
1212
$ch = curl_init("https://localhost/userpwd");
1313
curl_setopt($ch, CURLOPT_USERPWD, null);
1414
curl_setopt($ch, CURLOPT_VERBOSE, true);
15-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
15+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
16+
curl_setopt($ch, CURLOPT_STDERR, fopen("php://stdout", "w"));
1617
$response = curl_exec($ch);
1718
var_dump(str_contains($response, "authorization"));
19+
1820
$ch = curl_init("https://localhost/username");
1921
curl_setopt($ch, CURLOPT_USERNAME, null);
2022
curl_setopt($ch, CURLOPT_VERBOSE, true);
21-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
23+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
24+
curl_setopt($ch, CURLOPT_STDERR, fopen("php://stdout", "w"));
2225
$response = curl_exec($ch);
2326
var_dump(str_contains($response, "authorization"));
2427
?>
25-
--EXPECT--
28+
--EXPECTF--
2629
%A
2730
bool(false)
2831
%A

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /