From: Levi Morrison Date: Sun, 2 Aug 2020 19:34:53 +0000 (-0600) Subject: Default assert.exception to 1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=853eb8373fa6e29454efa27d6a9567a7e2fe0a27;p=php Default assert.exception to 1 --- 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--