Bug #78007 [Com]: curl_close() does not honor CURLOPT_STDERR
| From: | divinity76 at gmail dot com | Date: | Mon, 13 May 2019 10:55:16 +0000 |
| Subject: | Bug #78007 [Com]: curl_close() does not honor CURLOPT_STDERR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220834@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78007&edit=1
ID: 78007
Comment by: divinity76 at gmail dot com
Reported by: divinity76 at gmail dot com
Summary: curl_close() does not honor CURLOPT_STDERR
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 7 x64 SP1
PHP Version: 7.3.5
Block user comment: N
Private report: N
New Comment:
.. i forgot to add: CURLOPT_VERBOSE also has to be enabled. it is enabled in the test.
Previous Comments:
------------------------------------------------------------------------
[2019-05-13 10:49:07] divinity76 at gmail dot com
Related To: Bug #77939
------------------------------------------------------------------------
[2019-05-13 10:41:06] divinity76 at gmail dot com
Description:
------------
curl_close() does not honor CURLOPT_STDERR if the curl handle has been doing HTTP requests, then it
prints 3 lines to the actual stderr, regardless of what CURLOPT_STDERR is set to.
i know PHP 7.0.12 is not affected, so it happened somewhere between 7.0.13 and 7.3.4
Test script:
---------------
php -r
'$ch=curl_init();$tmp=tmpfile();curl_setopt_array($ch,array(CURLOPT_VERBOSE=>1,CURLOPT_URL=>"http://gstatic.com/generate_204",CURLOPT_STDERR=>$tmp));
curl_exec($ch);curl_close($ch);fclose($tmp);'
Expected result:
----------------
(blank)
Actual result:
--------------
$ php -r '$ch=curl_init();$tmp=tmpfile();curl_setopt_array($ch,array(CURLOPT_VER
* Marked for [closure]: kill all
* Closing connection 0
* The cache now contains 0 members
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78007&edit=1