Bug #77939 [NEW]: curl_close emits messages when it shouldn't

From: Date: Wed, 24 Apr 2019 21:24:28 +0000
Subject: Bug #77939 [NEW]: curl_close emits messages when it shouldn't
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220593@lists.php.net to get a copy of this message
From: humbads at alum dot mit dot edu Operating system: FreeBSD 11.2-RELEASE-p9 PHP version: 7.2.17 Package: cURL related Bug Type: Bug Bug description:curl_close emits messages when it shouldn't 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 bug report at https://bugs.php.net/bug.php?id=77939&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77939&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77939&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77939&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77939&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77939&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77939&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77939&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77939&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77939&r=support Expected behavior: https://bugs.php.net/fix.php?id=77939&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77939&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77939&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77939&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77939&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77939&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77939&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77939&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77939&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77939&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77939&r=mysqlcfg

« previous php.bugs (#220593) next »