Fix blank line bug with JSON_PRETTY_PRINT
commitf50aa467f75e018dd7f12832c1aee1c3271fdca9
authorJeff Welch <whatthejeff@gmail.com>
Tue, 10 Jun 2014 19:21:46 +0000 (10 12:21 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Wed, 11 Jun 2014 04:48:23 +0000 (10 21:48 -0700)
treebcda39a52dfba848a6615b9d33dadd6558569d5f
parent4f1e50b2bd7479eac2a56497be5cdb95e5b26ee6
Fix blank line bug with JSON_PRETTY_PRINT

Summary: Ported https://bugs.php.net/bug.php?id=66021.
Closes #2877
Fixes #2869

Reviewed By: @ptarjan

Differential Revision: D1370969

Pulled By: @JoelMarcey
hphp/runtime/base/variable-serializer.cpp
hphp/runtime/base/variable-serializer.h
hphp/test/slow/ext_json/pretty_empty.php.expect
hphp/test/zend/good/ext/json/tests/bug66021.php [new file with mode: 0644]
hphp/test/zend/good/ext/json/tests/bug66021.php.expectf [new file with mode: 0644]