Return to bug66021.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / json / tests |
php 5.4.29
--TEST-- Bug #66021 (Blank line inside empty array/object when JSON_PRETTY_PRINT is set) --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php class Foo { private $bar = 'baz'; } echo json_encode([[], (object)[], new Foo], JSON_PRETTY_PRINT), "\n"; ?> --EXPECT-- [ [], {}, {} ]