Bug #78007 [Com]: curl_close() does not honor CURLOPT_STDERR

From: Date: Mon, 13 May 2019 12:26:36 +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-220838@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: cURL related Operating System: Windows 7 x64 SP1 PHP Version: 7.3.5 Block user comment: N Private report: N New Comment: .. i wonder if the libcurl versions here are relevant. cmb@php.net add the libcurl version you're on (php -i | grep -i curl) can NOT reproduce on PHP 7.2.15 on Ubuntu 18.04 x64 kernel 4.15.0, libcurl 7.58.0 CAN reproduce on PHP 7.3.4 on Windows 7 x64 SP1, libcurl 7.64.1 CAN (partially) reproduce on PHP 7.3.5 on Arch Linux x64 kernel 5.0.13, libcurl.. ??? (can't check right now, ill make an update when i can) Previous Comments: ------------------------------------------------------------------------ [2019-05-13 11:32:01] cmb@php.net I cannot reproduce this on Windows 10.0.17763.475, neither with PHP 7.3.5 nor with current PHP-7.3 tip. ------------------------------------------------------------------------ [2019-05-13 11:26:16] divinity76 at gmail dot com on PHP 7.3.5 with Arch Linux x64 with kernel 5.0.13 we only get 1 line: * Closing connection 0 - that is better, but still bugged. ------------------------------------------------------------------------ [2019-05-13 10:55:16] divinity76 at gmail dot com .. i forgot to add: CURLOPT_VERBOSE also has to be enabled. it is enabled in the test. ------------------------------------------------------------------------ [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

« previous php.bugs (#220838) next »