We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf9c881 commit 1c25577Copy full SHA for 1c25577
ext/curl/tests/gh18458.phpt
@@ -12,17 +12,20 @@ include 'skipif-nocaddy.inc';
12
$ch = curl_init("https://localhost/userpwd");
13
curl_setopt($ch, CURLOPT_USERPWD, null);
14
curl_setopt($ch, CURLOPT_VERBOSE, true);
15
-curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
16
+curl_setopt($ch, CURLOPT_STDERR, fopen("php://stdout", "w"));
17
$response = curl_exec($ch);
18
var_dump(str_contains($response, "authorization"));
19
+
20
$ch = curl_init("https://localhost/username");
21
curl_setopt($ch, CURLOPT_USERNAME, null);
22
23
24
25
26
27
?>
---EXPECT--
28
+--EXPECTF--
29
%A
30
bool(false)
31
0 commit comments