]> granicus.if.org Git - php/commitdiff
MFH: php --ri main
authorHannes Magnusson <bjori@php.net>
Wed, 25 Apr 2007 09:56:29 +0000 (09:56 +0000)
committerHannes Magnusson <bjori@php.net>
Wed, 25 Apr 2007 09:56:29 +0000 (09:56 +0000)
sapi/cli/php_cli.c

index fb0059e3bf05c5ed9f64b6cc71fce94d56618a5f..b1de2a654c133c6df4e68ead9c54ca17a3e20f79 100644 (file)
@@ -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);
                                        }