php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55415
Patch fix-php_info-anchor-names revision 2011-08-13 10:35 UTC by callum at lynxphp dot com

Patch fix-php_info-anchor-names for PHP options/info functions Bug #55415

Patch version 2011-08-13 10:35 UTC

Return to Bug #55415 | Download this patch
Patch Revisions:

Developer: callum@lynxphp.com

index f33e537..75d0768 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -93,7 +93,7 @@ PHPAPI void php_info_print_module(zend_module_entry *zend_module TSRMLS_DC) /* {
 {
 	if (zend_module->info_func || zend_module->version) {
 		if (!sapi_module.phpinfo_as_text) {
-			php_printf("<h2><a name=\"module_%s\">%s</a></h2>\n", zend_module->name, zend_module->name);
+			php_printf("<h2><a name=\"module_%s\">%s</a></h2>\n", php_strtolower(php_str_replace(" ", "_", zend_module->name)), zend_module->name);
 		} else {
 			php_info_print_table_start();
 			php_info_print_table_header(1, zend_module->name);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC