diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-02-28 13:02:28 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-02-28 13:02:28 +0800 |
commit | fb825a95d0ff0106beb4b2957aad10fb08f90a22 (patch) | |
tree | 34e06a997870476ec2a298b3cca362720c76837a /sapi/cli/php_cli.c | |
parent | 8ced4f0ac906fd9a28b968801487630326c45bc8 (diff) | |
download | php-git-fb825a95d0ff0106beb4b2957aad10fb08f90a22.tar.gz |
Fixed module name printing
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |