}
/* }}} */
+PHP_MINFO_FUNCTION(php_core) { /* {{{ */
+ php_info_print_table_start();
+ php_info_print_table_row(2, "PHP Version", PHP_VERSION);
+ php_info_print_table_end();
+ DISPLAY_INI_ENTRIES();
+}
+/* }}} */
+
/* {{{ php_register_extensions
*/
int php_register_extensions(zend_module_entry **ptr, int count TSRMLS_DC)
zend_utility_values zuv;
int module_number=0; /* for REGISTER_INI_ENTRIES() */
char *php_os;
+ zend_module_entry *module;
#ifdef ZTS
zend_executor_globals *executor_globals;
void ***tsrm_ls;
return FAILURE;
}
- /* Register internal Zend classes */
- zend_register_default_classes(TSRMLS_C);
-
/* startup extensions staticly compiled in */
if (php_register_internal_extensions_func(TSRMLS_C) == FAILURE) {
php_printf("Unable to start builtin modules\n");
/* register additional functions */
if (sapi_module.additional_functions) {
- zend_module_entry *module;
-
if (zend_hash_find(&module_registry, "standard", sizeof("standard"), (void**)&module)==SUCCESS) {
EG(current_module) = module;
zend_register_functions(NULL, sapi_module.additional_functions, NULL, MODULE_PERSISTENT TSRMLS_CC);
EG(current_module) = NULL;
}
}
+
+ /* make core report what it should */
+ if (zend_hash_find(&module_registry, "core", sizeof("core"), (void**)&module)==SUCCESS) {
+ module->version = PHP_VERSION;
+ module->info_func = PHP_MINFO(php_core);
+ }
zend_post_startup(TSRMLS_C);