Note that in PHP7.0, the provided test behaves slightly differently, I would appreciate any insight into understanding if it is correct:
var_dump(bin2hex(json_decode($json, true, 2))); returns string(0) "" $t = json_decode($json, true, 2); for the Index and Property cases returns NULL. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1287726 Title: Wrong evaluation whether json is valid or not To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php-json/+bug/1287726/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs