mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
32a1ebbd43
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
19 lines
268 B
PHP
19 lines
268 B
PHP
--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--
|
|
[
|
|
[],
|
|
{},
|
|
{}
|
|
]
|