im using php 5.1.6 on xampp and i find a bug.
how to know if the bug was fixed?
the bug is:
<?php
session_start()
;
$_SESSION[0] = 'test';
echo $_SESSION[0];
<?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
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.comwrote:
im using php 5.1.6 on xampp and i find a bug.
how to know if the bug was fixed?the bug is:
<?php
session_start()
;
$_SESSION[0] = 'test';
echo $_SESSION[0];
<?php
session_start()
;
//$_SESSION[0] = 'test';
echo $_SESSION[0];the expected was:
testthe 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
--
Att.
Mathias Grimm
im using php 5.1.6 on xampp and i find a bug.
how to know if the bug was fixed?
5.1.6 is ooooold. Please test a newer version before reporting anything.
Secondly please consult regular support forums/groups
http://php.net/support.php for such questions, and bugs.php.net for
reporting bugs. This list is for working on the internals.
To your issue: That's related to the way the session module serializes
data, which is non-standard serialize due to register_globals. Most
likely php.next, where r_g is gone will use standard serialization where
this would be fixed. till then a session key has to be a string.
johannes
2010/5/13 Johannes Schlüter johannes@schlueters.de
To your issue: That's related to the way the session module serializes
data, which is non-standard serialize due to register_globals. Most
likely php.next, where r_g is gone will use standard serialization where
this would be fixed. till then a session key has to be a string.
Hi,
I have a patch ready for the standard serialisation which would indeed fix
this - I'll put together an RFC for it this week.
Regards,
Arpad
2010/5/13 Johannes Schlüter johannes@schlueters.de
To your issue: That's related to the way the session module serializes
data, which is non-standard serialize due to register_globals. Most
likely php.next, where r_g is gone will use standard serialization where
this would be fixed. till then a session key has to be a string.I have a patch ready for the standard serialisation which would indeed
fix this - I'll put together an RFC for it this week.
right now, unserialize throws notices if there are problems decoding the
string; it would be good if we could get rid of that too. (As a
reference: http://trac.qcu.be/projects/qcubed/ticket/555
regards,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Something like http://hu2.php.net/json_last_error should be implemented for
serialize.
Tyrael
2010/5/13 Johannes Schlüter johannes@schlueters.de
To your issue: That's related to the way the session module serializes
data, which is non-standard serialize due to register_globals. Most
likely php.next, where r_g is gone will use standard serialization
where
this would be fixed. till then a session key has to be a string.I have a patch ready for the standard serialisation which would indeed
fix this - I'll put together an RFC for it this week.right now, unserialize throws notices if there are problems decoding the
string; it would be good if we could get rid of that too. (As a
reference: http://trac.qcu.be/projects/qcubed/ticket/555regards,
Derick--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Hello,
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.comwrote:
im using php 5.1.6 on xampp and i find a bug.
how to know if the bug was fixed?the bug is:
<?php
session_start()
;
$_SESSION[0] = 'test';
echo $_SESSION[0];
<?php
session_start()
;
//$_SESSION[0] = 'test';
echo $_SESSION[0];the expected was:
testthe 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--
Att.
Mathias Grimm
5.1 is not supported anymore, try with 5.2 or 5.3 instead.
Best,
--
Etienne Kneuss