From: Jakub Zelenka Date: Mon, 20 Mar 2017 13:54:47 +0000 (+0000) Subject: Add note to the UPGRADING about JSON_OBJECT_AS_ARRAY priority changes X-Git-Tag: php-7.2.0alpha1~240 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde01adaeb0c59fe257e9532cb68c096c9ebe2b0;p=php Add note to the UPGRADING about JSON_OBJECT_AS_ARRAY priority changes --- diff --git a/UPGRADING b/UPGRADING index 6121b9d70d..52cecb0825 100644 --- a/UPGRADING +++ b/UPGRADING @@ -46,6 +46,11 @@ PHP 7.2 UPGRADE NOTES . The hash_hmac(), hash_hmac_file() and hash_pbkdf2() functions no longer accept non-cryptographic hashes. +- JSON + . The json_decode() option JSON_OBJECT_AS_ARRAY is used if the second + parameter (assoc) is null. Previously JSON_OBJECT_AS_ARRAY was always + ignored. + - PCRE: . preg_match() and other PCRE functions now distinguish between unmatched subpatterns and empty matches by reporting NULL and "" (empty string),