|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-11 12:33 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
The session_register() seems accessing wrong memory address and causing some strange bugs. The following phtml shows the bugs. Please run it and see the ouput of the source code from Internet Explorer. ---------------------------------------------------------- ---------------------------------------------------------- <? if (isset($PHPSESSID)) { session_id($PHPSESSID); } session_register("strSessionLoginName","strSessionLoginId"); if (empty($strSessionLoginName)) { session_destroy(); } ?> <HTML> <BODY> <FORM name='form_quest' method=post action=''> <TABLE border=0 cellspacing=0 align=center width="100%"> <TR class='styTRQuestion10'> <TD class='styTDQuestion1' width='94%'> <? echo "It is a serious bug." ?> </TD> </TR> <TR><TD class='styTDAnswer10'><TABLE> <TR><TD class='styTDAnswer10'><INPUT type=radio name='f2_0' value="1-0" onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>apple</TD> <TD><INPUT type=radio name='f2_0' value='2-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>banana</TD> <TD><INPUT type=radio name='f2_0' value='4-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>pear</TD></TR> <TR><TD><INPUT type=radio name='f2_0' value='8-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>orange</TD> <TD><INPUT type=radio name='f2_0' value='16-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>water-melon</TD> <TD><INPUT type=radio name='f2_0' value='32-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>sweet-melon</TD></TR> </TABLE> </TD></TR> </TABLE> </FORM> </BODY> </HTML> ----------------------------------------------------------- ----------------------------------------------------------- Here is the source output from internet explorer: <HTML> <BODY> <FORM name='form_quest' method="post" action=''><input type="hidden" name="PHPSESSID" value="5bc972fec5e1fc9f0166035c7f189f9e" /> <TABLE border=0 cellspacing=0 align=center width="100%"> <TR class='styTRQuestion10'> <TD class='styTDQuestion1' width='94%'> It is a serious bug. </TD> </TR> <TR><TD class='styTDAnswer10'><TABLE> <TR><TD class='styTDAnswer10'><INPUT type="radio" name='f2_0' value="1-0" onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>apple</TD> <TD><INPUT type="radio" name='f2_0' value='2-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>banana</TD> <TD><INPUT type="radio" name='f2_0' value="'4-0' _ I ? ? </TD"> < onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>pear</TD></TR> <TR><TD><INPUT type="radio" name='f2_0' value='8-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>orange</TD> <TD><INPUT type="radio" name='f2_0' value='16-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>water-melon</TD> <TD><INPUT type="radio" name='f2_0' value='32-0' onchange='' onKeyPress='return fncNoEnt(event)'></TD><TD style='padding-right:6px'>sweet-melon</TD></TR> </TABLE> </TD></TR> </TABLE> </FORM> </BODY> </HTML>