Skip to content

Commit 09489dd

Browse files
committed
fix test attempt
1 parent bf9c881 commit 09489dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/curl/tests/gh18458.phpt

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ 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
?>

0 commit comments

Comments
 (0)