Report JSON_ERROR_UTF8 in json_encode.
commitc548aec065fd47ec87835841b4f8c52cc9e32f49
authorIoan Negulescu <idn2104@columbia.edu>
Tue, 11 Mar 2014 22:42:08 +0000 (11 15:42 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 12 Mar 2014 00:45:29 +0000 (11 17:45 -0700)
tree616bc2f554e28e6d41609114248d8dd416482044
parent0091bacd2508cdd4cea137675600f22e8a1f80d7
Report JSON_ERROR_UTF8 in json_encode.

Properly raise error code.

Closes #2015
Closes #1959

Reviewed By: @fredemmott

Differential Revision: D1214336

Pulled By: @sgolemon
hphp/runtime/base/variable-serializer.cpp
hphp/test/slow/json/error_utf8.php [new file with mode: 0644]
hphp/test/slow/json/error_utf8.php.expect [new file with mode: 0644]