Issues

ZF-4825: Set of Zend_Session_SaveHandler_DbTableTest unit tests errors - "Undefined offset: 0"

Issue Type: Unit Tests: Problem Created: 2008-11-06T08:18:49.000+0000 Last Updated: 2008-11-13T14:10:30.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Alexander Veremyev (alexander) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Session

Related issues: - ZF-4833

Attachments:

Description

{panel} 3) testReadWrite(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

  1. testReadWriteComplex(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

  2. testReadWriteTwice(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

  3. testReadWriteTwiceAndExpire(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

  4. testReadWriteThreeTimesAndGc(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343 {panel}

Comments

Posted by Jonathan Deutekom (deutekom) on 2008-11-12T03:54:09.000+0000

Add

$this->_setupPrimaryKey();

in Function "_getPrimary" to solve this problem.

This error are present, because matthew has implement lazy-loading uf table metadata (ZF-2510)

Posted by Alexander Veremyev (alexander) on 2008-11-12T09:03:04.000+0000

Fixed.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:30.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts