|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-24 12:28 UTC] comsoso at comail dot ru
I've tried to register a seesion variable $array[$i] with sessionn_register(), where $i is an integer index, but failed. In a temporary session file in my /tmp directory I found a declaration like !array[0]|, and now values. Please help! Thanks PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 13:00:01 2025 UTC |
@ daniel@php.net: I hope that should be a bad joke ... I've tested the code below with 4.1.1 and it worked. (session support is broken in 4.1.2 AFAIK) $bar = array( 'something' => array( 1,2,3,4 ), 'nothing' => NULL, 'test' => true, 'test2' => array( 'x','y'=>2 ) ); session_register('bar');It was not meant to be entertaining. I was serious, but it turned out to be an user error - sorry for the false alarm. Here's the typo: session_register("arr"); instead of session_register($arr); damn :)