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 » HTTP » HTTP_Session » Bug #9402

PHP 5.2 warnings (E_ALL activated)

Details

Submitted2006-11-21 13:35 UTC
Fromstefanvalouch at googlemail dot com
Assignedtroehr
StatusDuplicate
PackageHTTP_Session
PHP Version5_2 CVS-2006-11-21
OSDebian Sid
Roadmaps(Not assigned)

Comments

[2006-11-21 13:35 UTC] stefanvalouch at googlemail dot com

Description:
------------
I upgraded to Debian Sid's PHP 5.2 packages and since that the Parser displays errors (see below)

Test script:
---------------
error_reporting(E_ALL)

require_once "HTTP/Session.php";
$options = array (
'dsn' => & $db,
'table' => "session",
'autooptimize' => true
);
HTTP_Session :: setContainer('MDB2', $options);
HTTP_Session :: start();
HTTP_Session :: setExpire(24*60*60);
HTTP_Session :: setIdle(60*60);

HTTP_Session :: set("logged_in", true);

if (HTTP_Session :: get("logged_in", false)) {
echo "logged in!";
} else {
echo "not logged in!!";
}

Expected result:
----------------
logged in!

Actual result:
--------------
logged in!
Notice: Undefined index: HTTP_Session_Container in /usr/share/php/HTTP/Session/Container.php on line 240

Fatal error: Call to a member function write() on a non-object in /usr/share/php/HTTP/Session/Container.php on line 240

Notice: Undefined index: HTTP_Session_Container in /usr/share/php/HTTP/Session/Container.php on line 236

Fatal error: Call to a member function close() on a non-object in /usr/share/php/HTTP/Session/Container.php on line 236