]> granicus.if.org Git - php/commit
Fix 2 broken json tests.
authorRasmus Lerdorf <rasmus@php.net>
Sun, 26 Jul 2009 07:21:02 +0000 (07:21 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 26 Jul 2009 07:21:02 +0000 (07:21 +0000)
commit474343657614a2e6b2b036043fd122bbef768059
tree0f7267c281af67911b6e6733c160e1f73752df51
parent0daf9214f82033aebe3b7787976c9e8cf8860ad0
Fix 2 broken json tests.

json_decode() returns a binary string, not unicode for
efficiency, and if you are going to test invalid utf8
in a test, you have to stuff it into a binary string
or it will be valid unicode by definition.
ext/json/tests/bug42785.phpt
ext/json/tests/bug43941.phpt