From 64179171f8453cbd20350a73205b426eb16046a6 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Mon, 23 Apr 2007 21:24:54 +0000 Subject: [PATCH] Add the ability to display the core ini entries via "php --ri core" --- 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 7f0398c8993..13b515fb8dc 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1306,8 +1306,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, "core")) { + 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); }