Req #30139 [PATCH]: Link phpinfo() modules to manual
Edit report at https://bugs.php.net/bug.php?id=30139&edit=1
ID: 30139
Patch added by: sample@email.tst
Reported by: phpbugs at everythingbuffy dot com
Summary: Link phpinfo() modules to manual
Status: Analyzed
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: XP Home
PHP Version: 5.0.1
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: ddgljcja
Revision: 1587182306
URL: https://bugs.php.net/patch-display.php?bug=30139&patch=ddgljcja&revision=1587182306
Previous Comments:
------------------------------------------------------------------------
[2017-08-23 00:37:34] kalle@php.net
Like Johannes said it requires extending the module_entry, while it can be introduced in a minor
version, it does mean another #ifdef for cross version compatibility, so probably best in the next
major version, tho I don't expect this to be a large use
------------------------------------------------------------------------
[2010-12-21 19:41:01] johannes@php.net
It is not that easy as PHP extensions might come from third party sources. This requires extending
the module_entry structure. (zend_extions interestingly provide this functionality ...)
------------------------------------------------------------------------
[2004-09-18 16:34:06] phpbugs at everythingbuffy dot com
Description:
------------
To make it easier to find information for items enabled in the PHP build why not link the output of
phpinfo() to the specific manual pages?
This would be easy to achieve, as follows:
In /ext/standard/info.c change line 70 from:
php_printf("<h2><a name=\"module_%s\">%s</a></h2>\n",
module->name, module->name);
To:
php_printf("<h2><a href=\"http://www.php.net/%s\"
title=\"%s\">%s</a></h2>\n", module->name, module->name,
module->name);
Thank you
Sean :)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=30139&edit=1
Thread (7 messages)