#25054 [NEW]: AUTH getAuthData method bug
| From: | maka3d at yahoo dot com dot br | Date: | Tue, 12 Aug 2003 13:31:50 +0000 |
| Subject: | #25054 [NEW]: AUTH getAuthData method bug | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-19568@lists.php.net to get a copy of this message | ||
From: maka3d at yahoo dot com dot br
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: PEAR related
Bug description: AUTH getAuthData method bug
Description:
------------
PEAR package Auth
the getAuthData method of Auth class, raise a Notice error if called
without a user login successfull before.
Reproduce code:
---------------
...
function getAuthData($name = null)
{
$session = &Auth::_importGlobalVariable("session");
if (is_null($name)) {
return $session['auth']['data']; // // trigger a NOTICE if the user is not
logged-in
...
// solution: return isset($session['auth']['data']) ?
$session['auth']['data'] : null;
Expected result:
----------------
expect return null
Actual result:
--------------
raise a notice
--
Edit bug report at http://bugs.php.net/?id=25054&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25054&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25054&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25054&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25054&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25054&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25054&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25054&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25054&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25054&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25054&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25054&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25054&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25054&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25054&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25054&r=gnused