cvs: php4 /sapi/cgi cgi_main.c

From: Date: Fri, 18 Jan 2002 20:27:09 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9091@lists.php.net to get a copy of this message
shane Fri Jan 18 15:27:09 2002 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: reimplement extension listing Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.140 php4/sapi/cgi/cgi_main.c:1.141 --- php4/sapi/cgi/cgi_main.c:1.140 Tue Dec 11 10:31:58 2001 +++ php4/sapi/cgi/cgi_main.c Fri Jan 18 15:27:09 2002 @@ -93,6 +93,12 @@ 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 @@ 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);

« previous php.cvs (#9091) next »