summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug52820.phpt
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-10-02 11:36:38 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-10-02 11:37:33 +0200
commit9fc54715784cf7dea3822814318bddf9e8fdbddd (patch)
tree972390f73232bd08cd09c9c8a4f4258337b9ff30 /ext/standard/tests/file/bug52820.phpt
parent52ba5efaf750b52f900ab8cf1fe979e81caa67b2 (diff)
downloadphp-git-9fc54715784cf7dea3822814318bddf9e8fdbddd.tar.gz
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>
Diffstat (limited to 'ext/standard/tests/file/bug52820.phpt')
-rw-r--r--ext/standard/tests/file/bug52820.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/file/bug52820.phpt b/ext/standard/tests/file/bug52820.phpt
index e51c27e457..b5690484a2 100644
--- a/ext/standard/tests/file/bug52820.phpt
+++ b/ext/standard/tests/file/bug52820.phpt
@@ -10,7 +10,7 @@ if (!extension_loaded("curl")) exit("skip curl extension not loaded");
$handle=curl_init('http://127.0.0.1:37349/');
curl_setopt($handle, CURLOPT_VERBOSE, true);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
-if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
+if (!@curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
die("skip fopencookie not supported on this platform");
--FILE--
<?php