output[] = ob_get_clean(); ob_start(); $this->errors[] = $err_str; } public function handle_die() { $output = ob_get_clean(); ob_start(); $this->output[] = $output; return array( $this, 'handle_die_callback' ); } public function handle_die_callback( $message ) { $this->errors[] = $message; return true; } }