File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / json / tests / bug66021.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:03:49 2014 UTC (10 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
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--
[
    [],
    {},
    {}
]

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>