diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-04 21:18:22 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-04 21:18:22 +0000 |
commit | 5a6d3cc42b9e9e19a744726ccfeaee332280e88d (patch) | |
tree | 557fcb9177c963f01b60e3f89c40617b4ad811cd /main/main.c | |
parent | 048f03a46b490d58dc087f6d99c34ed987e1fe5a (diff) | |
download | php-git-5a6d3cc42b9e9e19a744726ccfeaee332280e88d.tar.gz |
Added E_DEPRECATED startup notice (5.3 only)
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index de964a80ca..da082359a0 100644 --- a/main/main.c +++ b/main/main.c @@ -1901,17 +1901,28 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod /* Check for deprecated directives */ { static const char *directives[] = { - "zend.ze1_compatibility_mode", + "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 no longer supported in PHP 5.3 and greater", *p); + 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 */ |