|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63263 phpinfo() function generates old html/css
Submitted: 2012-10-11 14:17 UTC Modified: -
Avg. Score:3.0 ± 1.6
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: pascal dot chevrel at free dot fr Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.3Git-2012-10-11 (Git) OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 + 22 = ?
Subscribe to this entry?

 [2012-10-11 14:17 UTC] pascal dot chevrel at free dot fr
The phpinfo() function does not use recent html and abuses classes attributes and css for semantics (like using <td class="h"> for a cell header instead of <th>

I am attaching a patch that simplifies the html generated, makes it an html5 compliant (and hence simplifies the code used to generate this html) while keeping the same layout and visual appearance. The html goes from 64KB to 40KB just by removing redundant html.

There is one change to php_info_print_table_row_internal() to remove a variable, that function is not used anywhere else in the code base. I didn't get any test failure with this patch.



refactorphpinfo (last revision 2012-10-11 14:18 UTC by pascal dot chevrel at free dot fr)

Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 01:03:48 2022 UTC