]> granicus.if.org Git - php/commitdiff
Update UPGRADING with info about JSON decode error for empty string
authorJakub Zelenka <bukka@php.net>
Fri, 6 Mar 2015 18:41:43 +0000 (18:41 +0000)
committerJakub Zelenka <bukka@php.net>
Fri, 6 Mar 2015 18:41:43 +0000 (18:41 +0000)
UPGRADING

index d4b1d0afa344f0c3add57bf125c2d06a9dcd8c14..9770c976be9821e533f0069a54a595e16d8b8630 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -385,7 +385,8 @@ Other
 - JSON:
   . Rejected RFC 7159 incompatible number formats in json_decode string -
         top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1])
-  . Empty PHP string passed to json_encode emits a JSON syntax error.
+  . Calling json_decode with 1st argument equal to empty PHP string or value that 
+    after casting to string is empty string (NULL, FALSE) results in JSON syntax error.
 
 - Stream:
   . Removed set_socket_blocking() in favor of its alias stream_set_blocking().