$files, "filesSizesSeen" => $filesSizesSeen, "maxLines" => $maxLines, "bugReportPath" => "|" . $dataLoc . "|data|bug-report.log", "result" => $result ); // Include our process once our bug checking work is done $extraProcesses = new ExtraProcesses(); $doNext = $extraProcesses->onFileDirPaste($result, $status); // Finally, display our status in JSON format as the XHR response text echo json_encode($status);