summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2002-01-18 20:27:09 +0000
committerShane Caraveo <shane@php.net>2002-01-18 20:27:09 +0000
commit6120b8dc5a6b531426b21903c52d3c57ab9e22b6 (patch)
tree499d0f13014ee1a48994e3e4b213500bed61497a /sapi/cgi/cgi_main.c
parentb7285dde4e8f975eb7fc4edb595db510b180e201 (diff)
downloadphp-git-6120b8dc5a6b531426b21903c52d3c57ab9e22b6.tar.gz
reimplement extension listing
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index a3f37fd991..1226d1108d 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.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
@@ -594,8 +600,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
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);