Bug #62499 [Asn->Csd]: curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false

From: Date: Mon, 09 Jul 2012 02:36:54 +0000
Subject: Bug #62499 [Asn->Csd]: curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171820@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62499&edit=1 ID: 62499 Updated by: laruence@php.net Reported by: r dot hampartsumyan at gmail dot com Summary: curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false -Status: Assigned +Status: Closed Type: Bug Package: cURL related Operating System: Linux PHP Version: 5.3.14 Assigned To: laruence Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. 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: ------------------------------------------------------------------------ [2012-07-09 00:46:31] laruence@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=c819cf9d6bd43d79b894f1d0f0c6c282893fd9bd Log: Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, &quot;&quot;) returns false) ------------------------------------------------------------------------ [2012-07-09 00:45:49] laruence@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=c819cf9d6bd43d79b894f1d0f0c6c282893fd9bd Log: Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, &quot;&quot;) returns false) ------------------------------------------------------------------------ [2012-07-09 00:34:12] laruence@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=c819cf9d6bd43d79b894f1d0f0c6c282893fd9bd Log: Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, &quot;&quot;) returns false) ------------------------------------------------------------------------ [2012-07-07 15:15:47] r dot hampartsumyan at gmail dot com Description: ------------ According to the documentation for the CURLOPT_COOKIEFILE option: "The name of the file containing the cookie data. The cookie file can be in Netscape format, or just plain HTTP-style headers dumped into a file. If the name is an empty string, no cookies are loaded, but cookie handling is still enabled." . In previous version (e.g. 5.3.13) curl_setopt($ch,CURLOPT_COOKIEFILE, "") returned TRUE, but in 5.3.14 it returns FALSE. It seems like a regression caused by the fix of Bug #61948. Tested on Debian 7 and Ubuntu 12.04. Test script: --------------- <?php $ch = curl_init("http://php.net"); var_dump(curl_setopt($ch,CURLOPT_COOKIEFILE, "")); Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62499&edit=1

« previous php.bugs (#171820) next »