From 72b70d7c3c3b2b87423641906da2db407c32c3c3 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Thu, 14 Nov 2024 22:01:55 +0000 Subject: [PATCH] PHP 8.4: trigger_error() updates (#4063) --- .../errorfunc/functions/trigger-error.xml | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/reference/errorfunc/functions/trigger-error.xml b/reference/errorfunc/functions/trigger-error.xml index 2d08b197ff0c..28a962fd5ff1 100644 --- a/reference/errorfunc/functions/trigger-error.xml +++ b/reference/errorfunc/functions/trigger-error.xml @@ -46,6 +46,14 @@ The designated error type for this error. It only works with the E_USER_* family of constants, and will default to E_USER_NOTICE. + + + Passing E_USER_ERROR as the + error_level is now deprecated. + Throw an Exception or + call exit instead. + + @@ -80,6 +88,22 @@ + + 8.4.0 + + Passing E_USER_ERROR as the + error_level is now deprecated. + Throw an Exception or + call exit instead. + + + + 8.4.0 + + The function now has a return type of true + instead of bool. + + 8.0.0 @@ -103,9 +127,11 @@ ]]> @@ -132,6 +158,7 @@ if ($divisor == 0) { set_error_handler restore_error_handler The error level constants + The Deprecated attribute