php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67643 curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set
Submitted: 2014-07-17 15:20 UTC Modified: 2014-12-01 06:26 UTC
From: jille at hexon dot cx Assigned: stas
Status: Closed Package: cURL related
PHP Version: master-Git-2014-07-17 (Git) OS: Irrelevant
Private report: No CVE-ID:
 [2014-07-17 15:20 UTC] jille at hexon dot cx
Description:
------------
In #66562 curl_multi_getcontent was fixed to return an empty string when the response was 0 bytes. I think it should only return an empty string when the response was empty and should return NULL when the write method is not PHP_CURL_RETURN.


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-17 15:25 UTC] jille at hexon dot cx
-Summary: curl_multi_getcontent returns '' when isn't CURLOPT_RETURNTRANSFER +Summary: curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set
 [2014-07-17 15:25 UTC] jille at hexon dot cx
(fixed grammar)
 [2014-12-01 06:26 UTC] stas@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
 [2014-12-01 06:26 UTC] stas@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-12-05 07:00 UTC] ab@php.net
Automatic comment on behalf of jille@quis.cx
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7049d3450e25788c43c6cb3c5ddf719286569bd1
Log: Fixed bug #67643 (curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set)
 [2014-12-05 07:00 UTC] ab@php.net
Automatic comment on behalf of jille@quis.cx
Revision: http://git.php.net/?p=php-src.git;a=commit;h=acd0d7b4037de9498ee5686b90b349342db08f4c
Log: Fixed bug #67643 (curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set)
 [2016-07-20 11:40 UTC] davey@php.net
Automatic comment on behalf of jille@quis.cx
Revision: http://git.php.net/?p=php-src.git;a=commit;h=acd0d7b4037de9498ee5686b90b349342db08f4c
Log: Fixed bug #67643 (curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC