mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
15 lines
292 B
PHP
15 lines
292 B
PHP
--TEST--
|
|
Bug #68567 JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("json")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(json_encode(array("\x80" => 1), JSON_PARTIAL_OUTPUT_ON_ERROR));
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(6) "{"":1}"
|
|
===DONE===
|