From: Nikita Popov Date: Thu, 7 Nov 2019 10:48:02 +0000 (+0100) Subject: Add UPGRADING note about default object from empty value X-Git-Tag: php-7.4.7RC1~518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3d85cbcc189f3e2322f656534d093e263b80e2e;p=php Add UPGRADING note about default object from empty value Fixes bug #75921. [ci skip] --- diff --git a/UPGRADING b/UPGRADING index 4edbfaa57b..2a72976178 100644 --- a/UPGRADING +++ b/UPGRADING @@ -42,6 +42,9 @@ PHP 7.4 UPGRADE NOTES with the STREAM_OPTION_READ_BUFFER option. Custom stream wrapper implementations may need to implement the stream_set_option() method to avoid a warning (always returning false is a sufficient implementation). + . The "creating default object from empty value" warning is now consistently + thrown if a falsy value is promoted into an stdClass object. Previously some + cases like `$null->prop[0] = $val` missed this warning. - BCMath: . BCMath functions will now warn if a non well-formed number is passed, such