Browse Source

Add the ability to display the core ini entries via "php --ri core"

PHAR_1_2
Hannes Magnusson 20 years ago
parent
commit
64179171f8
  1. 8
      sapi/cli/php_cli.c

8
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);
}

Loading…
Cancel
Save