php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12593 Serious Ouput Problem in < input> tag
Submitted: 2001-08-06 08:43 UTC Modified: 2001-11-11 12:33 UTC
From: tcmleung at yahoo dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Window 2000 server with IIS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tcmleung at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-08-06 08:43 UTC] tcmleung at yahoo dot com
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> 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-11 12:33 UTC] sander@php.net
Works fine for me.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC