]> granicus.if.org Git - php/commitdiff
Add the ability to display the core ini entries via "php --ri core"
authorHannes Magnusson <bjori@php.net>
Mon, 23 Apr 2007 21:24:54 +0000 (21:24 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 23 Apr 2007 21:24:54 +0000 (21:24 +0000)
sapi/cli/php_cli.c

index 7f0398c899388304ff0ad2cf3cd6d149b094b5e0..13b515fb8dc564f9f6ecc57eb9ed5266f672be83 100644 (file)
@@ -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);
                                        }