The json_encode is not told to throw an excpetion on error, but neither are errors checked/caught.
So when JSON encoding fails, the response body is empty and the response code is 200, even though an error occurred.
|
echo json_encode($data, JSON_UNESCAPED_UNICODE); |
The
json_encodeis not told to throw an excpetion on error, but neither are errors checked/caught.So when JSON encoding fails, the response body is empty and the response code is
200, even though an error occurred.simplycode/lib/http.php
Line 133 in 92f607c