com php-src: Fixed module name printing: sapi/cli/php_cli.c
| From: | Dmitry Stogov | Date: | Fri, 28 Feb 2014 05:02:28 +0000 |
| Subject: | com php-src: Fixed module name printing: sapi/cli/php_cli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77869@lists.php.net to get a copy of this message | ||
Commit: fb825a95d0ff0106beb4b2957aad10fb08f90a22
Author: Xinchen Hui <laruence@gmail.com> Fri, 28 Feb 2014 13:02:28 +0800
Parents: 8ced4f0ac906fd9a28b968801487630326c45bc8
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fb825a95d0ff0106beb4b2957aad10fb08f90a22
Log:
Fixed module name printing
Changed paths:
M sapi/cli/php_cli.c
Diff:
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index f5fa168..190f09f 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -173,8 +173,9 @@ const opt_struct OPTIONS[] = {
{'-', 0, NULL} /* end of args */
};
-static int print_module_info(zend_module_entry *module TSRMLS_DC) /* {{{ */
+static int print_module_info(zval *element TSRMLS_DC) /* {{{ */
{
+ zend_module_entry *module = (zend_module_entry*)Z_PTR_P(element);
php_printf("%s\n", module->name);
return ZEND_HASH_APPLY_KEEP;
}