From 4f189651d51d93faa01ab8c025118a9b709eb6fd Mon Sep 17 00:00:00 2001 From: Landrok Date: Tue, 13 Sep 2016 23:28:04 +0200 Subject: [PATCH] Fix unescaped unicode encoding parameter 3rd parameter for json_encode is a max depth limitation. `JSON_UNESCAPED_UNICODE` has an int value of 256 whereas the max depth value is 512 (so no matter this way). This patch restores the expected usage of UNESCAPED_UNICODE param which is to encode multibyte Unicode characters literally. --- engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.php b/engine.php index 9748dce..9d2beab 100644 --- a/engine.php +++ b/engine.php @@ -59,7 +59,7 @@ ); file_put_contents( 'php://stdout', - json_encode($cleaned_single_issue, JSON_UNESCAPED_SLASHES, JSON_UNESCAPED_UNICODE) + json_encode($cleaned_single_issue, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) ); file_put_contents('php://stdout', chr(0)); }