diff options
| author | Scott MacVicar <scottmac@php.net> | 2008-12-12 23:19:47 +0000 |
|---|---|---|
| committer | Scott MacVicar <scottmac@php.net> | 2008-12-12 23:19:47 +0000 |
| commit | ed5f04710b2535f7c1f620c0289f56d17a7dba33 (patch) | |
| tree | 27323d16c61316108836c587d47587ba1e7cd54a /ext/json/tests | |
| parent | dddbfccb9fa49d77d5dc556abdf667a016c73065 (diff) | |
| download | php-git-ed5f04710b2535f7c1f620c0289f56d17a7dba33.tar.gz | |
MFH Fix bug #45989 - json_decode() doesn't return NULL on certain invalid strings
Diffstat (limited to 'ext/json/tests')
| -rw-r--r-- | ext/json/tests/001.phpt | 12 | ||||
| -rw-r--r-- | ext/json/tests/bug42090.phpt | 7 |
2 files changed, 9 insertions, 10 deletions
diff --git a/ext/json/tests/001.phpt b/ext/json/tests/001.phpt index 4c9f918b48..095aedf631 100644 --- a/ext/json/tests/001.phpt +++ b/ext/json/tests/001.phpt @@ -31,12 +31,12 @@ NULL NULL NULL NULL -string(1) "." -string(1) "." -string(3) "<?>" -string(1) ";" -string(12) "руссиш" -string(4) "blah" +NULL +NULL +NULL +NULL +NULL +NULL NULL object(stdClass)#1 (1) { ["test"]=> diff --git a/ext/json/tests/bug42090.phpt b/ext/json/tests/bug42090.phpt index daa57c3474..9e5b3317e5 100644 --- a/ext/json/tests/bug42090.phpt +++ b/ext/json/tests/bug42090.phpt @@ -16,10 +16,9 @@ var_dump( ?> --EXPECT-- string(0) "" -string(5) "".."." -string(1) """ -string(2) """" +NULL +NULL +NULL string(4) ""\""" string(1) """ string(2) """" - |
