xref: /PHP-8.4/ext/json/tests/bug68938.phpt (revision 32a1ebbd)
1--TEST--
2Bug #68938 (json_decode() decodes empty string without indicating error)
3--FILE--
4<?php
5json_decode("");
6var_dump(json_last_error());
7?>
8--EXPECT--
9int(4)
10