Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.4

Request #7860 Don't use session_register!
Submitted: 2006-06-10 15:35 UTC Modified: 2006-12-16 08:30 UTC
From: peter dot nagy at interware dot hu Assigned: aashley
Status: Closed Package: Auth (version 1.3.0)
PHP Version: Irrelevant OS: *
Roadmaps: (Not assigned)    
Subscription  


 [2006-06-10 15:35 UTC] peter dot nagy at interware dot hu (Peter Nagy)
Description: ------------ The package uses the session_register() function in the constructor on line 289, but the function is deprecated if one is uses the $_SESSION or $HTTP_SESSION_VARS array, as it is mentioned in the PHP manual at http://hu2.php.net/manual/hu/function.session-register.php page. Test script: --------------- if( !isset($_SESSION[$this->_sessionName]) && !isset($GLOBALS['HTTP_SESSION_VARS'][$this->_sessionName])) { session_register($this->_sessionName); } this should be something like: if( !isset($_SESSION[$this->_sessionName]) && !isset($GLOBALS['HTTP_SESSION_VARS'][$this->_sessionName])) { $_SESSION[$this->_sessionName] = array(); }

Comments

 [2006-08-09 21:12 UTC] aashley at php dot net (Adam Ashley)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.