ZF-7168: Zend_Application automatic Zend_Session setup with Zend_Db_Table as adapter gives fatal error

Description

When autoloading resources with Zend_Application with the following setup (application.ini) :

resources.db.adapter = "pdo_mysql" resources.db.params.dbname = "bla" resources.db.params.password = "bla" resources.db.params.username = "bla" resources.db.params.host = "localhost" resources.db.params.charset = "utf8" resources.db.isDefaultTableAdapter = true

resources.session.name = "BLA" resources.session.use_only_cookies = true resources.session.saveHandler.class = "Zend_Session_SaveHandler_DbTable" resources.session.saveHandler.options.name = "session_data" resources.session.saveHandler.options.primary = "id" resources.session.saveHandler.options.modifiedColumn = "modified" resources.session.saveHandler.options.dataColumn = "data" resources.session.saveHandler.options.lifetimeColumn = "lifetime" resources.session.saveHandler.options.lifetime = 1800

The application crashes since version 1.8.1 (works with 1.8.0 without a glitch) with the following errors : Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'No adapter found for Zend_Session_SaveHandler_DbTable' in /usr/share/php/libzend-framework-php/Zend-cvs-290609/Db/Table/Abstract.php:670 Stack trace: #0 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Db/Table/Abstract.php(655): Zend_Db_Table_Abstract->_setupDatabaseAdapter() #1 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Session/SaveHandler/DbTable.php(401): Zend_Db_Table_Abstract->_setup() #2 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Db/Table/Abstract.php(289): Zend_Session_SaveHandler_DbTable->_setup() #3 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Session/SaveHandler/DbTable.php(205): Zend_Db_Table_Abstract->__construct(Array) #4 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Application/Resource/Session.php(59): Zend_Session_SaveHandler_DbTable->__construct(Array) #5 /usr/share/php/libzend-framework-php/Zend-cvs-290609/Application/Resource/ResourceAbstract.php(93): Zend_Application_Resource_Session->setSave in /usr/share/php/libzend-framework-php/Zend-cvs-290609/Db/Table/Abstract.php on line 670

Comments

date typo on my path to the framework cvs version

This is a duplicate of ZF-6942