|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2015-10-12 14:42 UTC] glen at delfi dot ee
  [2015-10-12 14:43 UTC] glen at delfi dot ee
  [2015-10-12 14:49 UTC] glen at delfi dot ee
  [2015-10-21 17:56 UTC] bukka@php.net
 
-Status:      Open
+Status:      Duplicate
-Assigned To:
+Assigned To: bukka
  [2015-10-21 17:56 UTC] bukka@php.net
  [2015-10-21 19:44 UTC] glen at delfi dot ee
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
Description: ------------ json with "\0000token" causes fatal error when decoding $assoc=true, however it passes with $assoc=false. it should return NULL and set json_last_error flag: ➔ php56 t.php int(1) array(1) { ["foo"]=> array(1) { ["l"]=> array(1) { ["uid"]=> string(0) "" } } } PHP Fatal error: Cannot access property started with '\0' in t.php on line 4 ➔ cat t.php <?php var_dump(1, json_decode('{"foo": {"\u0000l": {"uid":""} } }', true)); var_dump(2, json_decode('{"foo": {"\u0000l": {"uid":""} } }', false)); ➔