Bug #77939 [Opn->Nab]: curl_close emits messages when it shouldn't

From: Date: Thu, 06 Jun 2019 08:07:05 +0000
Subject: Bug #77939 [Opn->Nab]: curl_close emits messages when it shouldn't
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221157@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77939&edit=1 ID: 77939 Updated by: mike@php.net Reported by: humbads at alum dot mit dot edu Summary: curl_close emits messages when it shouldn't -Status: Open +Status: Not a bug Type: Bug Package: cURL related Operating System: FreeBSD 11.2-RELEASE-p9 PHP Version: 7.2.16 Block user comment: N Private report: N New Comment: Fixed in upstream libcurl 7.65, see https://github.com/curl/curl/commit/d934059afd8568201d0646d6bfd201f39b6bc412 Previous Comments: ------------------------------------------------------------------------ [2019-05-13 10:49:07] divinity76 at gmail dot com probably related to (but is not a duplicate of) bug #78007 ------------------------------------------------------------------------ [2019-04-24 21:25:57] humbads at alum dot mit dot edu I meant 7.2.16, not 7.1.16. ------------------------------------------------------------------------ [2019-04-24 21:24:23] humbads at alum dot mit dot edu Description: ------------ With the sample script below, curl_exec emits the message "HTTP Basic: Access denied." to stdout and curl_close emits the message "* Closing connection 0" to stderr. These functions should not emit any messages. I have: cURL support => enabled cURL Information => 7.64.1 I was able to reproduce the problem with all versions of PHP on my system, including PHP 5.6.39, 7.1.28, and 7.1.16. Test script: --------------- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.sellbrite.com/v1/inventory'); curl_setopt($ch, CURLINFO_HEADER_OUT, true); print "Starting curl_exec\n"; @curl_exec($ch); print "Starting curl_close\n"; @curl_close($ch); print "curl_close finished\n"; Expected result: ---------------- Starting curl_exec Starting curl_close curl_close finished Actual result: -------------- Starting curl_exec HTTP Basic: Access denied. Starting curl_close * Closing connection 0 curl_close finished ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77939&edit=1

« previous php.bugs (#221157) next »