com php-src: Fix the fix for bug #55415: ext/standard/info.c
| From: | Stanislav Malyshev | Date: | Mon, 15 Dec 2014 19:40:48 +0000 |
| Subject: | com php-src: Fix the fix for bug #55415: ext/standard/info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83718@lists.php.net to get a copy of this message | ||
Commit: d9f277bd1666341d27891156635fc23eb9646c01
Author: Stanislav Malyshev <stas@php.net> Mon, 15 Dec 2014 11:38:51 -0800
Parents: b65d184d5e117158df444e88e909cec1355ebc7e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d9f277bd1666341d27891156635fc23eb9646c01
Log:
Fix the fix for bug #55415
Bugs:
https://bugs.php.net/55415
Changed paths:
M ext/standard/info.c
Diff:
diff --git a/ext/standard/info.c b/ext/standard/info.c
index 0019054..bd07709 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -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);