From 853eb8373fa6e29454efa27d6a9567a7e2fe0a27 Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Sun, 2 Aug 2020 13:34:53 -0600 Subject: [PATCH] Default assert.exception to 1 --- UPGRADING | 2 ++ Zend/tests/arrow_functions/007.phpt | 3 +++ Zend/tests/ast/zend-pow-assign.phpt | 1 + Zend/tests/ast_serialize_backtick_literal.phpt | 1 + Zend/tests/attributes/012_ast_export.phpt | 4 ++++ Zend/tests/match/009.phpt | 2 ++ ext/standard/assert.c | 2 +- ext/standard/tests/assert/assert.phpt | 1 + ext/standard/tests/assert/assert03.phpt | 1 + ext/standard/tests/assert/assert04.phpt | 1 + ext/standard/tests/assert/assert_basic.phpt | 1 + ext/standard/tests/assert/assert_basic2.phpt | 1 + ext/standard/tests/assert/assert_basic3.phpt | 1 + ext/standard/tests/assert/assert_basic5.phpt | 1 + ext/standard/tests/assert/assert_closures.phpt | 1 + ext/standard/tests/assert/assert_error2.phpt | 1 + ext/standard/tests/assert/assert_variation.phpt | 1 + 17 files changed, 24 insertions(+), 1 deletion(-) diff --git a/UPGRADING b/UPGRADING index d4ddcede72..b1c722c4a4 100644 --- a/UPGRADING +++ b/UPGRADING @@ -21,6 +21,8 @@ PHP 8.0 UPGRADE NOTES ======================================== - Core: + . Assertion failures now throw by default. If the old behavior is desired, + then set `assert.exception=0` in INI settings. . Methods with the same name as the class are no longer interpreted as constructors. The __construct() method should be used instead. . Removed ability to call non-static methods statically. diff --git a/Zend/tests/arrow_functions/007.phpt b/Zend/tests/arrow_functions/007.phpt index 0fcc4930d1..92b525ffbb 100644 --- a/Zend/tests/arrow_functions/007.phpt +++ b/Zend/tests/arrow_functions/007.phpt @@ -1,5 +1,8 @@ --TEST-- Pretty printing for arrow functions +--INI-- +zend.assertions=1 +assert.exception=0 --FILE--