From: Marcus Boerger Date: Sat, 25 Feb 2006 17:43:12 +0000 (+0000) Subject: - Deprecation severity shall be E_STRICT (as commented by ilia) X-Git-Tag: RELEASE_1_2~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b0637bcddc39982697f4864f01e1af72efe82d;p=php - Deprecation severity shall be E_STRICT (as commented by ilia) # Actually this conforms with other messages --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 6baa176bd9..d31ca782ce 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -864,7 +864,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS zend_error_noreturn(E_ERROR, "Cannot call abstract method %v::%v()", EX(function_state).function->common.scope->name, EX(function_state).function->common.function_name); } if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_NOTICE, "Function %s%s%s() is deprecated", + zend_error(E_STRICT, "Function %s%s%s() is deprecated", EX(function_state).function->common.scope ? EX(function_state).function->common.scope->name.s : "", EX(function_state).function->common.scope ? "::" : "", EX(function_state).function->common.function_name); diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 5f61656529..20e0f56cdf 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -1820,7 +1820,7 @@ ZEND_VM_HELPER(zend_do_fcall_common_helper, ANY, ANY) ZEND_VM_NEXT_OPCODE(); /* Never reached */ } if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_NOTICE, "Function %v%s%v() is deprecated", + zend_error(E_STRICT, "Function %v%s%v() is deprecated", EX(function_state).function->common.scope ? EX(function_state).function->common.scope->name : (zstr)EMPTY_STR, EX(function_state).function->common.scope ? "::" : "", EX(function_state).function->common.function_name); diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index 961d26bf70..4106bdaf63 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -146,7 +146,7 @@ static int zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS) ZEND_VM_NEXT_OPCODE(); /* Never reached */ } if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_NOTICE, "Function %v%s%v() is deprecated", + zend_error(E_STRICT, "Function %v%s%v() is deprecated", EX(function_state).function->common.scope ? EX(function_state).function->common.scope->name : (zstr)EMPTY_STR, EX(function_state).function->common.scope ? "::" : "", EX(function_state).function->common.function_name);