$_SESSION numeric index bug

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

« previous php.internals (#48274) next »