Req #67643 [Opn->Csd]: curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set

From: Date: Mon, 01 Dec 2014 06:26:51 +0000
Subject: Req #67643 [Opn->Csd]: curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188867@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67643&edit=1 ID: 67643 Updated by: stas@php.net Reported by: jille at hexon dot cx Summary: curl_multi_getcontent returns '' when CURLOPT_RETURNTRANSFER isn't set -Status: Open +Status: Closed Type: Feature/Change Request Package: cURL related Operating System: Irrelevant PHP Version: master-Git-2014-07-17 (Git) -Assigned To: +Assigned To: stas Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2014-07-17 15:25:17] jille at hexon dot cx (fixed grammar) ------------------------------------------------------------------------ [2014-07-17 15:20:32] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67643&edit=1

« previous php.bugs (#188867) next »