From 42170968cfd47e5439898e58b3a8dc6d134e684b Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 25 Apr 2007 09:56:29 +0000 Subject: [PATCH] MFH: php --ri main --- sapi/cli/php_cli.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index fb0059e3bf..b1de2a654c 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1277,8 +1277,12 @@ int main(int argc, char *argv[]) zend_module_entry *module; if (zend_hash_find(&module_registry, lcname, len+1, (void**)&module) == FAILURE) { - zend_printf("Extension '%s' not present.\n", reflection_what); - exit_status = 1; + if (!strcmp(reflection_what, "main")) { + display_ini_entries(NULL); + } else { + zend_printf("Extension '%s' not present.\n", reflection_what); + exit_status = 1; + } } else { php_info_print_module(module TSRMLS_CC); } -- 2.40.0