From: Xinchen Hui Date: Fri, 28 Feb 2014 05:02:28 +0000 (+0800) Subject: Fixed module name printing X-Git-Tag: POST_PHPNG_MERGE~412^2~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb825a95d0ff0106beb4b2957aad10fb08f90a22;p=php Fixed module name printing --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index f5fa168dc5..190f09f912 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; }