diff --git a/Zend/tests/builtin_functions/define_arg_3.phpt b/Zend/tests/builtin_functions/define_arg_3.phpt index 25d1b9dcf35a..857c2e3017b1 100644 --- a/Zend/tests/builtin_functions/define_arg_3.phpt +++ b/Zend/tests/builtin_functions/define_arg_3.phpt @@ -18,7 +18,7 @@ var_dump(MY_CONSTANT); --EXPECTF-- Deprecated: define(): Argument #3 ($case_insensitive) is ignored and treated as false since declaration of case-insensitive constants is no longer supported, passing the argument explicitly is unnecessary in %s on line %d -Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported, this will be an error in PHP 9.0 in %s on line %d +Deprecated: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported, this will be an error in PHP 9.0 in %s on line %d Error: Undefined constant "MY_CONSTANT" Deprecated: define(): Argument #3 ($case_insensitive) is ignored and treated as false since declaration of case-insensitive constants is no longer supported, passing the argument explicitly is unnecessary in %s on line %d diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index e02e0afe2bfc..e1e305dc6e5f 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -583,7 +583,7 @@ ZEND_FUNCTION(define) } if (non_cs) { - zend_error(E_WARNING, "define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported, this will be an error in PHP 9.0"); + zend_error(E_DEPRECATED, "define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported, this will be an error in PHP 9.0"); if (UNEXPECTED(EG(exception))) { RETURN_THROWS(); }