Skip to content

Conversation

@plstand
Copy link
Contributor

@plstand plstand commented Nov 2, 2013

Changed json_encode() so that when the JSON_PRETTY_PRINT option is specified, the pair of linefeeds immediately after an opening bracket and before the corresponding closing bracket is omitted when the array or object contains no elements or accessible properties (and hence would have a blank line between the brackets).

Changed json_encode() so that when the JSON_PRETTY_PRINT option is specified,
the pair of linefeeds immediately after an opening bracket and before the
corresponding closing bracket is omitted when the array or object contains no
elements or accessible properties (and hence would have a blank line between
the brackets).
@plstand plstand changed the title Fix #66021 (Blank line inside empty array/object) Fix #66021 (Blank line inside empty JSON array/object) Apr 7, 2014
@mnapoli
Copy link

mnapoli commented Apr 7, 2014

+1 for more readable pretty prints!

@php-pulls php-pulls merged commit 82a4f1a into php:PHP-5.4 Apr 14, 2014
@plstand plstand deleted the bug66021 branch September 2, 2014 16:00
wmfgerrit pushed a commit to wikimedia/mediawiki that referenced this pull request May 31, 2018
The PHP bug 66021 <https://bugs.php.net/bug.php?id=66021> was fixed by
php/php-src#518 and is included in PHP 5.4.28+
and PHP 5.5.12+.
This workaround is not necessary anymore because the minimum PHP
version for MediaWiki is 7.0.0+.

Change-Id: I801eaffc253fd88e0d3c87cfe97777837bd3902d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants