]> granicus.if.org Git - php/commit
json_decode() should generate a syntax error when given "".
authorAdam Harvey <aharvey@php.net>
Mon, 2 Feb 2015 11:07:34 +0000 (11:07 +0000)
committerAdam Harvey <aharvey@php.net>
Mon, 2 Feb 2015 11:07:34 +0000 (11:07 +0000)
commita7b3abe4e6f5e2fdfd8d55b676c9ca6b3f9c8cc8
tree7ac46431e85176df9b2a9a5e5a7bf7d8b5c16999
parentfb803ff81993eb8acde0cdd5f513b6253221c349
json_decode() should generate a syntax error when given "".

Fixes bug #68938 (json_decode() decodes empty string without error).
Patch by jeremy at bat-country dot us.
NEWS
ext/json/json.c
ext/json/tests/bug54484.phpt
ext/json/tests/bug68938.phpt [new file with mode: 0644]