summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug68567.phpt
blob: 888f08e72d897bcfadacfde40dc4904cb422d3d6 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #68567 JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key
--FILE--
<?php

var_dump(json_encode(array("\x80" => 1), JSON_PARTIAL_OUTPUT_ON_ERROR));

?>
--EXPECT--
string(6) "{"":1}"