|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-20 07:20 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
[2010-08-20 07:20 UTC] aharvey@php.net
[2010-08-20 21:01 UTC] blue-tidus159 at hotmail dot com
-Status: Feedback
+Status: Closed
[2010-08-20 21:01 UTC] blue-tidus159 at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 13:00:01 2025 UTC |
Description: ------------ Well the problem is that I echo out the value of a session entry at the last line of code and the right value is echoed, but when I look into the file/db(custom session handler) the value is wrong. I use Xampp 1.7.3/PHP 5.3.1 and I already tested every little part of the code. I found out that when I comment out an array that the value is saved right. I can't offer a whole test because this problem seems to appear only in this special context. I think that there somewhere gets memory overwritten or so, otherwise I can't explain that to myself. The array looks like that: $this->conf = array('' => array('' => array('' => '')) // a lot more lines like that 'navigation' => array( '/admin/*' => array('view' => 'blazeCMS\\view\\admin\\AdminView', 'bind' => array( array('name' => 'id', 'default' => '0', 'object' => 'myNut.id'), array('name' => 'name', 'default' => 'test', 'object' => 'myNut2.name')), 'action' => array(array('action' => 'toLogin', 'view' => 'blazeCMS\\view\\admin\\LoginView'), array('action' => 'success', 'view' => 'blazeCMS\\view\\admin\\AdminView'))) // '/*' => array('view' => 'blazeCMS\\view\\IndexView', // 'action' => array(array('action' => 'navigate', // 'view' => 'blazeCMS\\view\\IndexView'), // array('action' => 'success', // 'view' => 'blazeCMS\\view\\IndexView'))) ) When I remove the comments then the problem appears, otherwise not. Any ideas? Test script: --------------- ...// a lot of code $_SESSION['my.view_id'] = $context->getView()->getViewId(); echo $_SESSION['my.view_id']; // returns the right value Expected result: ---------------- .... Look into the session file .... the value should be the view id which was assigned before. In this case: blazeCMS\view\admin\AdminView Actual result: -------------- blazeCMS\view\IndexView