xref: /PHP-7.4/ext/json/tests/bug68938.phpt (revision c85f12e3)
1--TEST--
2Bug #68938 (json_decode() decodes empty string without indicating error)
3--SKIPIF--
4<?php if (!extension_loaded("json")) print "skip"; ?>
5--FILE--
6<?php
7json_decode("");
8var_dump(json_last_error());
9?>
10--EXPECT--
11int(4)
12