$previous = ['class' => '', 'function' => '', 'database' => false];
// The ignore list contains all functions that are only wrapper functions
- $ignore = ['fetchUrl', 'call_user_func_array'];
+ $ignore = ['call_user_func_array'];
while ($func = array_pop($trace)) {
if (!empty($func['class'])) {
* @param string $content_type Type of the input (Default: 'application/json').
* @param integer $options JSON options
*/
- public static function jsonExit($x, $content_type = 'application/json', int $options = null) {
+ public static function jsonExit($x, $content_type = 'application/json', int $options = 0) {
header("Content-type: $content_type");
echo json_encode($x, $options);
exit();