diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-02 11:36:38 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-02 11:37:33 +0200 |
commit | 9fc54715784cf7dea3822814318bddf9e8fdbddd (patch) | |
tree | 972390f73232bd08cd09c9c8a4f4258337b9ff30 /ext/standard/tests | |
parent | 52ba5efaf750b52f900ab8cf1fe979e81caa67b2 (diff) | |
download | php-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')
-rw-r--r-- | ext/standard/tests/file/bug52820.phpt | 2 |
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 |