Edit report at https://bugs.php.net/bug.php?id=62499&edit=1
ID: 62499 Updated by: fel...@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