Re: $_SESSION numeric index bug
| From: | Mathias Grimm | Date: | Thu, 13 May 2010 15:39:30 +0000 |
| Subject: | Re: $_SESSION numeric index bug | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48275@lists.php.net to get a copy of this message | ||
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