From 182757aea672215da4705e33e3d03317f6adca00 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Thu, 5 Oct 2023 01:52:50 +0100 Subject: [PATCH 1/3] PHP 8.3: legacy assertion have been deprecated --- reference/info/constants.xml | 153 ++++++++++++-------- reference/info/functions/assert-options.xml | 10 ++ reference/info/functions/assert.xml | 23 ++- reference/info/ini.xml | 26 +++- reference/info/versions.xml | 2 +- 5 files changed, 142 insertions(+), 72 deletions(-) diff --git a/reference/info/constants.xml b/reference/info/constants.xml index b4e2c29798fb..7c135fde6433 100644 --- a/reference/info/constants.xml +++ b/reference/info/constants.xml @@ -191,68 +191,6 @@ - - Assert constants, these values are used to set - the assertion options in assert_options. - - - <function>assert</function> constants - - - - &Constants; - INI Setting - &Description; - - - - - ASSERT_ACTIVE - assert.active - - Enable assert evaluation. - - - - ASSERT_CALLBACK - assert.callback - - Callback to call on failed assertions. - - - - ASSERT_BAIL - assert.bail - - Terminate execution on failed assertions. - - - - ASSERT_EXCEPTION - assert.exception - - Issues a PHP warning for each failed assertion - - - - ASSERT_WARNING - assert.warning - - Issues a PHP warning for each failed assertion - - - - ASSERT_QUIET_EVAL - assert.quiet_eval - - Disable error_reporting during assertion expression evaluation. - Removed as of PHP 8.0.0. - - - - -
- The following constants are only available if the host operating system is Windows, and can tell different versioning information @@ -434,6 +372,97 @@ + +
+ <function>assert</function> constants + + Assert constants, these values are used to set + the assertion options in assert_options. + + + + + + ASSERT_ACTIVE + (int) + + + + Option for assert. See also + assert.active. + + &warn.deprecated.feature-8-3-0; + + + + + + + ASSERT_CALLBACK + (int) + + + + Option for assert. See also + assert.callback. + + &warn.deprecated.feature-8-3-0; + + + + + ASSERT_BAIL + (int) + + + + Option for assert. See also + assert.bail. + + &warn.deprecated.feature-8-3-0; + + + + + ASSERT_EXCEPTION + (int) + + + + Option for assert. See also + assert.exception. + + &warn.deprecated.feature-8-3-0; + + + + + ASSERT_WARNING + (int) + + + + Option for assert. See also + assert.warning. + + &warn.deprecated.feature-8-3-0; + + + + + ASSERT_QUIET_EVAL + (int) + + + + Option for assert. See also + assert.quiet_eval. + + &warn.feature.removed-8-0-0; + + + +
- + From 80486a421fa2856f6147c18e4a5f3c6babd4061b Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Sun, 8 Oct 2023 17:55:29 +0100 Subject: [PATCH 2/3] Revert constant page changes --- reference/info/constants.xml | 159 +++++++++++++++-------------------- 1 file changed, 68 insertions(+), 91 deletions(-) diff --git a/reference/info/constants.xml b/reference/info/constants.xml index 7c135fde6433..1135118b4698 100644 --- a/reference/info/constants.xml +++ b/reference/info/constants.xml @@ -191,6 +191,74 @@ + + Assert constants, these values are used to set + the assertion options in assert_options. + + + <function>assert</function> constants + + + + &Constants; + INI Setting + &Description; + + + + + + ASSERT_ACTIVE + assert.active + + Enable assert evaluation. + &warn.deprecated.feature-8-3-0; + + + + ASSERT_CALLBACK + assert.callback + + Callback to call on failed assertions. + &warn.deprecated.feature-8-3-0; + + + + ASSERT_BAIL + assert.bail + + Terminate execution on failed assertions. + &warn.deprecated.feature-8-3-0; + + + + ASSERT_EXCEPTION + assert.exception + + Issues a PHP warning for each failed assertion + &warn.deprecated.feature-8-3-0; + + + + ASSERT_WARNING + assert.warning + + Issues a PHP warning for each failed assertion + &warn.deprecated.feature-8-3-0; + + + + ASSERT_QUIET_EVAL + assert.quiet_eval + + Disable error_reporting during assertion expression evaluation. + &warn.feature.removed-8-0-0; + + + + +
+ The following constants are only available if the host operating system is Windows, and can tell different versioning information @@ -372,97 +440,6 @@ - -
- <function>assert</function> constants - - Assert constants, these values are used to set - the assertion options in assert_options. - - - - - - ASSERT_ACTIVE - (int) - - - - Option for assert. See also - assert.active. - - &warn.deprecated.feature-8-3-0; - - - - - - - ASSERT_CALLBACK - (int) - - - - Option for assert. See also - assert.callback. - - &warn.deprecated.feature-8-3-0; - - - - - ASSERT_BAIL - (int) - - - - Option for assert. See also - assert.bail. - - &warn.deprecated.feature-8-3-0; - - - - - ASSERT_EXCEPTION - (int) - - - - Option for assert. See also - assert.exception. - - &warn.deprecated.feature-8-3-0; - - - - - ASSERT_WARNING - (int) - - - - Option for assert. See also - assert.warning. - - &warn.deprecated.feature-8-3-0; - - - - - ASSERT_QUIET_EVAL - (int) - - - - Option for assert. See also - assert.quiet_eval. - - &warn.feature.removed-8-0-0; - - - -