From: Hannes Magnusson Date: Mon, 23 Apr 2007 21:24:54 +0000 (+0000) Subject: Add the ability to display the core ini entries via "php --ri core" X-Git-Tag: RELEASE_1_2_0~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64179171f8453cbd20350a73205b426eb16046a6;p=php Add the ability to display the core ini entries via "php --ri core" --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 7f0398c899..13b515fb8d 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); }