dis-bench / src /php /php-src /ext /json /tests /bug66021.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
268 Bytes
--TEST--
Bug #66021 (Blank line inside empty array/object when JSON_PRETTY_PRINT is set)
--FILE--
<?php
class Foo {
private $bar = 'baz';
}
echo json_encode(array(array(), (object) array(), new Foo), JSON_PRETTY_PRINT);
?>
--EXPECT--
[
[],
{},
{}
]