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

From: Date: Sun, 08 Jul 2012 17:10:04 +0000
Subject: Bug #62499 [Opn->Asn]: curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171807@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: felipe@php.net Reported by: r dot hampartsumyan at gmail dot com Summary: curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false -Status: Open +Status: Assigned Type: Bug Package: cURL related Operating System: Linux PHP Version: 5.3.14 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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 (#171807) next »