diff options
author | Hannes Magnusson <bjori@php.net> | 2007-04-25 09:56:29 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2007-04-25 09:56:29 +0000 |
commit | 42170968cfd47e5439898e58b3a8dc6d134e684b (patch) | |
tree | cba2566dbd538874f04ed6c5a342c9457baf82a0 /sapi/cli/php_cli.c | |
parent | 8464abe22ebba93ecd60845e6d683c3c24a61a15 (diff) | |
download | php-git-42170968cfd47e5439898e58b3a8dc6d134e684b.tar.gz |
MFH: php --ri main
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 8 |
1 files 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); } |