diff options
author | Edin Kadribasic <edink@php.net> | 2002-01-19 22:45:26 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2002-01-19 22:45:26 +0000 |
commit | 9504838d7e21d9829250a04d1497dffe786dbbb6 (patch) | |
tree | 29dcd6e665f25b860712f47883688edce07f9b4b /sapi/cli/php_cli.c | |
parent | 833de5e0d2b2de9e8eb6f5dbf698bd52cb8766db (diff) | |
download | php-git-9504838d7e21d9829250a04d1497dffe786dbbb6.tar.gz |
Merged patch from sapi/cgi.
# I will try to sync relevant patches from sapi/cgi to sapi/cli
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 14e9627989..2e80c80b44 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -93,6 +93,12 @@ static int _print_module_info(zend_module_entry *module, void *arg TSRMLS_DC) return 0; } +static int _print_extension_info(zend_extension *module, void *arg TSRMLS_DC) +{ + php_printf("%s\n", module->name); + return 0; +} + #ifndef STDOUT_FILENO #define STDOUT_FILENO 1 #endif @@ -451,8 +457,7 @@ int main(int argc, char *argv[]) php_printf("[PHP Modules]\n"); zend_hash_apply_with_argument(&module_registry, (apply_func_arg_t) _print_module_info, NULL TSRMLS_CC); php_printf("\n[Zend Modules]\n"); - /* zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) _print_module_info, NULL TSRMLS_CC); */ - php_printf("Not Implemented\n"); + zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) _print_extension_info, NULL TSRMLS_CC); php_printf("\n"); php_end_ob_buffers(1 TSRMLS_CC); exit(1); |