com php-src: Add UPGRADING note about default object from empty value: UPGRADING

From: Date: Thu, 07 Nov 2019 10:48:02 +0000
Subject: com php-src: Add UPGRADING note about default object from empty value: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109206@lists.php.net to get a copy of this message
Commit: d3d85cbcc189f3e2322f656534d093e263b80e2e Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 7 Nov 2019 11:48:02 +0100 Parents: aed4f6e8492d64de10c540dc57a30a995163ac3e Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d3d85cbcc189f3e2322f656534d093e263b80e2e Log: Add UPGRADING note about default object from empty value Fixes bug #75921. [ci skip] Bugs: https://bugs.php.net/75921 Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 4edbfaa57b0..2a72976178a 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

« previous php.cvs (#109206) next »