Fix the fix for bug #55415

This commit is contained in:
Stanislav Malyshev 2014-12-15 11:38:51 -08:00
parent b65d184d5e
commit d9f277bd16

View File

@ -38,6 +38,7 @@
#include <sys/utsname.h>
#endif
#include "url.h"
#include "php_string.h"
#ifdef PHP_WIN32
typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO);
@ -146,8 +147,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) {
int len = 0;
zend_string *url_name = php_url_encode(zend_module->name, strlen(zend_module->name), &len);
zend_string *url_name = php_url_encode(zend_module->name, strlen(zend_module->name));
php_strtolower(url_name->val, url_name->len);
php_info_printf("<h2><a name=\"module_%s\">%s</a></h2>\n", url_name->val, zend_module->name);