php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35676 CSS overflow disappears unless error reporting is triggered
Submitted: 2005-12-15 08:57 UTC Modified: 2005-12-15 09:16 UTC
From: jhala at uoregon dot edu Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.1 OS: Windows Server 2003
Private report: No CVE-ID: None
 [2005-12-15 08:57 UTC] jhala at uoregon dot edu
Description:
------------
I have a span tag in a table cell that is setup with:
style="width:382; height:200; overflow:scroll;"

It was displaying as expected in IE 6.029... while I had E_ALL set in php.ini AND I had at least one "Notice" or other error displaying at the top of the page.  When I addressed the "Notice"-related problem or set error reporting to E_ERROR, the scrollbars would disappear.  The "Notice" in particular that I observed was any improperly defined variable, including variables I made up just to trigger the notice that didn't have any impact on the rest of the code.  I tried to make the scrollbar appear by echoing or printing text from the <? ?> section preceding the <html> tag (thinking perhaps it was some wierd positioning issue or something) but this did not have the same effect.



Reproduce code:
---------------
<? if( $testtest == 1 ) { print( "hyah" ); } ?>
<html><body style="margin:0;">
<form method="post" action="url.html">
<table width="756" border="3" frame="void" align="left" cellpadding="0" cellspacing="0" style="margin:0;">
<tr><td align="left" valign="top">
<table border="3" frame="void" cellpadding="0" cellspacing="0" style="margin:0px">
<tr><td width="371" height="167" align="left">
<textarea cols="58" rows="10">test</textarea>
</td>
<td valign="top" width="382" height="200" rowspan="3">
<span style="width:382; height:200; overflow:scroll;">
</span></td></td><tr><td align="right" height="24">
<input type="hidden" name="dummy" value="1" />
<input type="submit" name="Submit" value="Submit" />
</td></tr><tr><td></td></tr>
<table></td></tr></table></form></body></html>

Expected result:
----------------
I should be able to clear up all notices and other warning messages and still have the overflow scrollbars display correctly.  I have it set to "scroll" instead of "auto" for troubleshooting purposes, but it ought to work correctly with "auto" as well.

Actual result:
--------------
The reproduce code box will contain the minimal relevant HTML and CSS code that I used to hopefully recreate the situation.  Commenting out the PHP "if" statement OR turning error reporting off should make the scrollbars disappear, otherwise they should be there.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-15 09:16 UTC] alan_k@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 09:01:33 2024 UTC