History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-3744
Type: Bug Bug
Status: Closed Closed
Resolution: Not an Issue
Priority: Major Major
Assignee: Ralph Schindler
Reporter: Craig Hausner
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Session_SaveHandler_DbTable throwing errors in version 1.6 RC1

Created: 24/Jul/08 01:50 PM   Updated: 11/Jan/09 09:20 PM
Component/s: Zend_Session
Affects Version/s: 1.6.0RC1
Fix Version/s: 1.7.3

Time Tracking:
Not Specified

 Public Fields   Internal Project Management Fields   
Tags:
Participants: Craig Hausner and Ralph Schindler
Fix Version Priority: Should Have


 Description  « Hide
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:

<?php

require_once 'Zend/Session.php';
require_once 'Zend/Db.php';
require_once 'Zend/Session/SaveHandler/DbTable.php';
require_once 'Zend/Db/Table/Abstract.php';
require_once 'Zend/Session/Namespace.php';

$db = Zend_Db::factory('Oracle', array(
'host' =>'*******',
'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";

?>



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Craig Hausner - 08/Sep/08 03:49 PM
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.