summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug68938.phpt
blob: d2e8cb6315aa2adbf40aed468c948d79d02e9a8a (plain)
1
2
3
4
5
6
7
8
9
--TEST--
Bug #68938 (json_decode() decodes empty string without indicating error)
--FILE--
<?php
json_decode("");
var_dump(json_last_error());
?>
--EXPECT--
int(4)