PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Bug #2414

getResponseCookies() fails

Details

Submitted2004-09-30 07:07 UTC
Frompordal at orangeilk dot com
Assignedmj
StatusClosed
PackageDocumentation
PHP Version4.3.8
OSGentoo Linux
Roadmaps(Not assigned)

Comments

[2004-09-30 07:07 UTC] pordal at orangeilk dot com

Description:
------------
The example code provided to get cookies returns the following error:

Fatal error: Call to a member function on a non-object in cookies.php on line 11

(when copied into a file named test.php).

Reproduce code:
---------------
The code was copied and pasted verbatim from: http://pear.php.net/manual/en/package.http.http-request.cookie.php

Expected result:
----------------
A table of cookies

Actual result:
--------------
Fatal error