summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug66021.phpt
blob: 5f43948b6a18a9caad32855e82c749075febf46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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--
[
    [],
    {},
    {}
]