Re: Re: $_SESSION numeric index bug

From: Date: Thu, 13 May 2010 15:58:18 +0000
Subject: Re: Re: $_SESSION numeric index bug
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-48277@lists.php.net to get a copy of this message
Hello, On Thu, May 13, 2010 at 5:39 PM, Mathias Grimm <mathiasgrimm@gmail.com> wrote: > i did the same on linux, with the same version of php and the bug is there!! > > > On Thu, May 13, 2010 at 12:25 PM, Mathias Grimm <mathiasgrimm@gmail.com>wrote: > >> im using php 5.1.6 on xampp and i find a bug. >> how to know if the bug was fixed? >> >> the bug is: >> >> 1. >> <?php >> session_start(); >> $_SESSION[0] = 'test'; >> echo $_SESSION[0]; >> >> 2. >> <?php >> session_start(); >> //$_SESSION[0] = 'test'; >> echo $_SESSION[0]; >> >> the expected was: >> test >> >> the result was: >> notice... >> >> after comment and reload, throws: >> * >> * >> *Notice*: Undefined offset: 0 in * >> C:\xampp_padrao\xampp\htdocs\indisponibilidade_patrimonial\index.php* on >> line *4* >> * >> * >> if dont use numeric index, it works!, but if index is numeric, bug! >> >> if it was not fixed, a want to fix it, but i dont have cvs access >> >> -- >> Att. >> Mathias Grimm >> >> http://mathiasgrimm.com.br >> http://phpempregos.com.br >> > > > > -- > Att. > Mathias Grimm > > http://mathiasgrimm.com.br > http://phpempregos.com.br > 5.1 is not supported anymore, try with 5.2 or 5.3 instead. Best, -- Etienne Kneuss

« previous php.internals (#48277) next »