Bug #7899 [NEW]: Auth::sessionValidThru() returns wrong value

From: Date: Wed, 14 Jun 2006 13:14:41 +0000
Subject: Bug #7899 [NEW]: Auth::sessionValidThru() returns wrong value
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8030@lists.php.net to get a copy of this message
From: dm2029 at mail dot ru Operating system: Package version: PHP version: Irrelevant Package: Documentation Bug Type: Bug Bug description: Auth::sessionValidThru() returns wrong value Description: ------------ Package PEAR::Auth v. 1.3.0 Auth.php,v 1.101 2006/03/02 06:53:08 Documentation (http://pear.php.net/manual/en/package.authentication.auth.auth.sessionvalidthru.php) says that Auth::sessionValidThru() returns 0 if no maximum idle time is set. But really it returns $this->session['idle'] if $this->idle is set to 0. Test script: --------------- <?php require_once('Auth/Auth.php'); $login_params = array( "dsn" => "mysql://user:pass@localhost/database", "table" => "auth_table", "usernamecol" => "Login", "passwordcol" => "Password" ); $Auth = new Auth('DB', $login_params); $Auth->start(); if ($Auth->getAuth()) { echo $Auth->sessionValidThru(); } ?> Expected result: ---------------- 0 Actual result: -------------- Current $Auth->session['idle'] value (i.e. current Unix timestamp) -- Edit bug report at http://pear.php.net/bugs/bug.php?id=7899&edit=1 --

« previous php.pear.doc (#8030) next »