Merge pull request #301 from oligriffiths/patch/json-partial-output

Added JSON_PARTIAL_OUTPUT_ON_ERROR to json_encode to handle recursive stack traces
This commit is contained in:
Denis Sokolov
2015-07-23 18:48:15 +03:00
+2 -1
View File
@@ -84,7 +84,8 @@ class JsonResponseHandler extends Handler
header('Content-Type: application/json');
}
echo json_encode($response);
echo json_encode($response, defined('JSON_PARTIAL_OUTPUT_ON_ERROR') ? JSON_PARTIAL_OUTPUT_ON_ERROR : 0);
return Handler::QUIT;
}
}