ZF-9599: Error with configuration based on the example using Zend_Session_

Issue Type: Docs: Problem Created: 2010-04-02T12:31:26.000+0000 Last Updated: 2010-10-20T10:07:48.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Edi Skraba (edspiner) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Db_Table

  • Zend_Session

Related issues: - ZF-6868



If configuring Zend_Application_Resource_Session based on "Example #17 Sample Session resource configuration" […] (an example with using Zend_Session_SaveHandler_DbTable) the application crashes as the $primary array keys are strings {quote} var_dump($this->_primary); // echo's // array('session_id'=>'session_id','save_path'=>'save_path','name'=>'name') {quote}

and Zend_Db_Table_Abstract::_setupPrimaryKey() try's to access the array by using an integer key ($this->_identity). This code is (line 895 of Zend_Db_Table_Abstract): {quote} $primary = (array) $this->_primary; $pkIdentity = $primary[(int) $this->_identity]; {quote}


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-16T14:37:44.000+0000

From what I can tell this is not an issue in Zend_App_Resource. Reassigning.

Posted by Ramon Henrique Ornelas (ramon) on 2010-10-20T10:04:42.000+0000

Fixed with r23177

Have you found an issue?

See the Overview section for more details.


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

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