mirror of
https://github.com/filp/whoops.git
synced 2026-09-16 12:46:19 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user