]> granicus.if.org Git - php/commitdiff
- Deprecation severity shall be E_STRICT (as commented by ilia)
authorMarcus Boerger <helly@php.net>
Sat, 25 Feb 2006 17:43:12 +0000 (17:43 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 25 Feb 2006 17:43:12 +0000 (17:43 +0000)
# Actually this conforms with other messages

Zend/zend_execute_API.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h

index 6baa176bd987038ab8102b295cbf06fb86619eb9..d31ca782ce562cab64505046a8a60c8e8598e5a0 100644 (file)
@@ -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);
index 5f6165652912d01aa7568070c3c4855dba53514e..20e0f56cdfa65dc41b68dee8bd9ccfac04071731 100644 (file)
@@ -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);
index 961d26bf701ce3cfa4f3e0abb1726e15c9651f0d..4106bdaf636dc80ad1d0f1e14bfa8e1749cb3199 100644 (file)
@@ -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);