Home » Networking » Net_Curl » Bug #1200
Notice: Undefined variable: cookie_data in c:\Web\pear\Net\Curl.php on line 381
Details
| Submitted | 2004-04-13 20:42 UTC |
|---|---|
| From | jpleveille at gameloft dot com |
| Assigned | gurugeek |
| Status | Closed |
| Package | Net_Curl |
| PHP Version | 5.0.0b4 (beta4) |
| OS | Windows 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.