ZF-3744: Zend_Session_SaveHandler_DbTable throwing errors in version 1.6 RC1

Issue Type: Bug Created: 2008-07-24T13:50:26.000+0000 Last Updated: 2009-01-11T21:20:37.000+0000 Status: Closed Fix version(s): - 1.7.3 (19/Jan/09)

Reporter: Craig Hausner (mooseknuckle) Assignee: Ralph Schindler (ralph) Tags: - Zend_Session

Related issues: Attachments:


When the Zend_Session_SaveHandler_DbTable is used as the save handler for sessions it throws an error as follows:

PHP Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - Undefined variable: alias' in /usr/share/pear/Zend/Session.php:430 Stack trace:

0 /var/www/html/misc/db_session.php(28): Zend_Session::start()

1 {main}

thrown in /usr/share/pear/Zend/Session.php on line 430

Here is the test script I'm using:

'\*\*\*\*\*\*\*', 'username' => '\*\*\*\*\*\*\*', 'password' => '\*\*\*\*\*\*\*', 'dbname' => '\*\*\*\*\*\*\*' )); Zend\_Db\_Table\_Abstract::setDefaultAdapter($db); $config = array( 'name' => 'SESSIONS', 'primary' => 'ID', 'modifiedColumn' => 'MODIFIED', 'dataColumn' => 'DATA', 'lifetimeColumn' => 'LIFETIME' ); Zend\_Session::setSaveHandler( new Zend\_Session\_SaveHandler\_DbTable($config) ); Zend\_Session::start(); echo "foobar"; ?>


Posted by Craig Hausner (mooseknuckle) on 2008-09-08T15:49:41.000+0000

I have found the cause of this issue. The quoteTableAs function for the Oracle database adapter is missing a default value for the variable alias on line 190. Once the default value is added all functionality works as expected.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.