PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Curl » Bug #1200

Notice: Undefined variable: cookie_data in c:\Web\pear\Net\Curl.php on line 381

Details

Submitted2004-04-13 20:42 UTC
Fromjpleveille at gameloft dot com
Assignedgurugeek
StatusClosed
PackageNet_Curl
PHP Version5.0.0b4 (beta4)
OSWindows XP SP1
Roadmaps(Not assigned)

Comments

[2004-04-13 20:42 UTC] jpleveille at gameloft dot com

Description:
------------
I just set a cookie into the cURL object I just did and PHP went up with this error:

Notice: Undefined variable: cookie_data in c:\Web\pear\Net\Curl.php on line 381

I used version 0.2 of the package.

Reproduce code:
---------------
$curl = new Net_Curl($_POST['url']);
$curl->header = 1;
$curl->cookies['GL-OLAP-session'] = md5('test');

Expected result:
----------------
No warnings. ;)

Actual result:
--------------
(line 381)
$cookie_data .= urlencode($name) . '=' . urlencode($value) . ';';

No initialisation of $cookie_data.