From: csaba at alum dot mit dot edu
Operating system:
PHP version: 5CVS-2005-11-24 (snap)
PHP Bug Type: PHP options/info functions
Bug description: phpinfo's css affects other parts of page
Description:
------------
phpinfo's style sheet drastically affects other parts of the web page
being generated, and there seems to be no compelling reason for it.
For example, note the output of the following .php page:
<html><head><title>phpinfo test page</title></head>
<body bgcolor=yellow>
<table border>
<tr><td>Row1, Col1</td>
<td>Row1, Col2</td></tr>
<tr><td>Row2, Col1</td>
<td>Row2, Col2 <img
src='http://us.geo1.yimg.com/pic.geocities.com/img/filemgr/folder.gif'
alt='img alt' title='img title'></td></tr>
</table>
</body>
</html>
In particular, on both IE 6 and FF,
there are thick light borders, yellow background,
serif fonts, and row 2, cell 2 has only one line
Now add the following line:
<?php phpinfo(); ?>
While this prints out the php information, it drastically alters the
appearance of the table at the top of the page. Specifically, the
background color has gone from yellow to white, the table borders are now
all thin, dark lines, the fonts are now all sans serif, and row 2, cell 2
now has 2 lines with the text on the top line and the image to the right
on the line below.
Expected result:
----------------
I expect the original page, by and large, to remain the same as before
phpinfo was invoked. In particular, the bulk of the problems happen
because many of phpinfo()'s style declarations are applied to element
types instead of phpinfo() specific classes within an element type. For
example,
table { ... } affects all tables and not just phpinfo()'s tables. I would
like to suggest making a phpinfo() specific class and using this for all
elements generated with phpinfo()
Thanks,
Csaba Gabor from Vienna
--
Edit bug report at http://bugs.php.net/?id=35365&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35365&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=35365&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=35365&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35365&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35365&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35365&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35365&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35365&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35365&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35365&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35365&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35365&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35365&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35365&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35365&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35365&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35365&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35365&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35365&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35365&r=mysqlcfg