xref: /PHP-8.4/ext/json/tests/bug68567.phpt (revision 32a1ebbd)
1--TEST--
2Bug #68567 JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key
3--FILE--
4<?php
5
6var_dump(json_encode(array("\x80" => 1), JSON_PARTIAL_OUTPUT_ON_ERROR));
7
8?>
9--EXPECT--
10string(6) "{"":1}"
11