php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35343 phpinfo() produces invalid CSS
Submitted: 2005-11-22 23:54 UTC Modified: 2005-11-23 01:17 UTC
From: csaba at alum dot mit dot edu Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5CVS-2005-11-22 (snap) OS: Win XP Pro
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: csaba at alum dot mit dot edu
New email:
PHP Version: OS:

 

 [2005-11-22 23:54 UTC] csaba at alum dot mit dot edu
Description:
------------
http://bugs.php.net/35046 reported that for PHP v 5.0.5 on Linux
<?php phpinfo() ?> produces invalid CSS because of
<!--
...
//-->

This was supposed to have been fixed two weeks ago in CVS according to the bug report, but it is still there in PHP v 5.1.0RC7 on my Win XP Pro (just downloaded and tested).  My Firefox javascript console is still complaining.  Since I was not able to reopen that bug, I am filing this new one.

Csaba Gabor from Vienna

My band aid for this till the fix is:

ob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();
$phpinfo = str_replace("<!--", "", $phpinfo);
$phpinfo = str_replace("//-->", "", $phpinfo);
print $phpinfo;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 01:17 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC