[php-maint] Bug#680260: php5-curl: Fails when setting CURLOPT_COOKIEFILE to empty string, cookies disabled.
Jaime Silva
jaimealbertosilva at gmail.com
Wed Jul 4 17:14:37 UTC 2012
Package: php5-curl
Version: 5.4.4-2
Severity: important
According to PHP manual for the curl_setopt function [1] this is how
the CURLOPT_COOKIEFILE option works:
===
CURLOPT_COOKIEFILE 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.
===
But if I pass NULL or '' to this option curl_setopt fails and cookie
handling is not
enabled.
I detected this problem when Drupal 7's Simpletest failed. I will post
another message
to this bug with a link to the issue on drupal.org with more details.
Thanks.
[1] http://co.php.net/manual/en/function.curl-setopt.php
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (120, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-curl depends on:
ii dpkg 1.16.4.3
ii libapache2-mod-php5 [phpapi-20100525] 5.4.4-2
ii libc6 2.13-33
ii libcurl3 7.26.0-1
ii php5-cli [phpapi-20100525] 5.4.4-2
ii php5-common 5.4.4-2
ii ucf 3.0025+nmu3
php5-curl recommends no packages.
php5-curl suggests no packages.
-- no debconf information
More information about the pkg-php-maint
mailing list