Skip to content

Commit 9fc5471

Browse files
committed
Fix borked test case
Setting `CURLOPT_STDERR` can trigger a warning, what causes the test to be marked as borked as of commit e49593a[1]. To avoid this, we silence the `curl_setopt()` call. [1] <http://git.php.net/?p=php-src.git;a=commit;h=e49593a7c3159a5673ce74b4e5133f1264dc313f>
1 parent 52ba5ef commit 9fc5471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/file/bug52820.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!extension_loaded("curl")) exit("skip curl extension not loaded");
1010
$handle=curl_init('http://127.0.0.1:37349/');
1111
curl_setopt($handle, CURLOPT_VERBOSE, true);
1212
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
13-
if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
13+
if (!@curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
1414
die("skip fopencookie not supported on this platform");
1515
--FILE--
1616
<?php

0 commit comments

Comments
 (0)