/** * Starts error handler and stdout buffering. * * @param Call $call */ private function startErrorAndOutputBuffering(Call $call) { $errorReporting = $call->getErrorReportingLevel() ?: $this->errorReportingLevel; set_error_handler(array($this, 'handleError'), $errorReporting); $this->obStarted = ob_start(); }