]> granicus.if.org Git - php/commit
Fix incompatible JSON errors
authorJakub Zelenka <bukka@php.net>
Sun, 28 Jun 2015 17:09:10 +0000 (18:09 +0100)
committerJakub Zelenka <bukka@php.net>
Sun, 28 Jun 2015 17:09:10 +0000 (18:09 +0100)
commitf30503ce4e0482d638a2561ca3ddc6e1291a104a
treed154ffe04fa8bd522e685cb051f83aa061e1e625
parentfb08798c9f0ea820d567668d0cea4833dc61dd8e
Fix incompatible JSON errors

This fixes differences in error codes with PHP 5 and 7.
The malformed UTF-8 and control character error codes are
now returned even in non-string context which makes it
the same as it was in PHP 5 json ext.
ext/json/json_scanner.c
ext/json/json_scanner.re
ext/json/tests/bug69187.phpt