diff options
author | Jani Taskinen <jani@php.net> | 2009-09-04 11:02:40 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2009-09-04 11:02:40 +0000 |
commit | 4361f2370a507d24318e3b87060051f21f468493 (patch) | |
tree | 8706b16cdc72b7fdfa18d151f58a6ef8539131be /main | |
parent | ac2d3990f24cd3d628b6d3ddbd0e957bbb62d974 (diff) | |
download | php-git-4361f2370a507d24318e3b87060051f21f468493.tar.gz |
I have no idea. This might or might not fix a bug in some branch. At least it works.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/main/main.c b/main/main.c index 6c9224be36..3df9cc23dc 100644 --- a/main/main.c +++ b/main/main.c @@ -1927,33 +1927,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod return FAILURE; } - /* Check for deprecated directives */ - { - static const char *directives[] = { - "define_syslog_variables", - "register_globals", - "register_long_arrays", - "safe_mode", - "magic_quotes_gpc", - "magic_quotes_runtime", - "magic_quotes_sybase", - NULL}; - const char **p = directives; - long val; - - while (*p) { - if (cfg_get_long((char*)*p, &val) == SUCCESS && val) { - zend_error(E_WARNING, "Directive '%s' is deprecated in PHP 5.3 and greater", *p); - } - ++p; - } - - /* This is not too nice, but since its the only one theres no need for extra stuff here */ - if (cfg_get_long("zend.ze1_compatibility_mode", &val) == SUCCESS && val) { - zend_error(E_ERROR, "zend.ze1_compatibility_mode is no longer supported in PHP 5.3 and greater"); - } - } - /* Register PHP core ini entries */ REGISTER_INI_ENTRIES(); @@ -2047,6 +2020,34 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod shutdown_memory_manager(1, 0 TSRMLS_CC); + /* Check for deprecated directives */ + { + static const char *directives[] = { + "define_syslog_variables", + "register_globals", + "register_long_arrays", + "safe_mode", + "magic_quotes_gpc", + "magic_quotes_runtime", + "magic_quotes_sybase", + NULL + }; + const char **p = directives; + long val; + + while (*p) { + if (cfg_get_long((char*)*p, &val) == SUCCESS && val) { + zend_error(E_WARNING, "Directive '%s' is deprecated in PHP 5.3 and greater", *p); + } + ++p; + } + + /* This is not too nice, but since its the only one theres no need for extra stuff here */ + if (cfg_get_long("zend.ze1_compatibility_mode", &val) == SUCCESS && val) { + zend_error(E_ERROR, "zend.ze1_compatibility_mode is no longer supported in PHP 5.3 and greater"); + } + } + /* we're done */ return SUCCESS; } |