php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #27514 fix modules' PHP info
Submitted: 2004-03-06 17:21 UTC Modified: 2013-10-28 10:52 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: verdy_p at wanadoo dot fr Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.5RC3 OS: Win32
Private report: No CVE-ID: None
 [2004-03-06 17:21 UTC] verdy_p at wanadoo dot fr
Description:
------------
The php_info() output is quite ugly in its format, which is inconsistent across its modules, and still not XHTML/1.1 ready.
But more importantly, some info are still missing...
Please make the modules info consistant in their format:

* Win32 API:
missing a "Win32 API version | information" row;

* bcmath:
missing a "bcmath version | information" row;

* calendar:
missing a "calendar version | information" row;

* com:
missing a "com support | enabled" information row;
missing a "com version | information" row;

* crack:
wrong head style, should use the information rows style;
missing a "crack version | information" row;

* ctype:
change "ctype functions" to "ctype support";
missing a "ctype version | information" row;

* curl:
change "CURL information" to "CURL version"

* db:
wrong single column style, change to "db Flat file support | enabled";
missing a "db Version | information" row;

* dba:
missing a "DBA Version | information" row;

etc...


Reproduce code:
---------------
On Windows command line with the default CGI/FastCGI version:

php -i > php_info.html
start php_info.html


Expected result:
----------------
More generally there should exist a way to format the module supported in a single table displaying a "enabled/disabled" column, and a version.

Then there would be specific items below that list additional information variables and/or configurable directives, possibly with anchors linked from the main table of modules with an additional "details" column.

This may require some modifications in each module so that they export their information in a common way through a single API.

Searching in this configuration screen is not immediate, and this is the only way that PHP hosting ISPs provide information about their installation of PHP, and this should become a way to compare these installations.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-28 10:52 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 10:52 UTC] krakjoe@php.net
How the output is formatted for any extension has to be down to the extension, born of the fact they have different kinds of settings they wish to display differently.

I believe the output nowadays does pass validation.

Closing the bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 01 04:00:01 2025 UTC