original_string: protected function _logInternalError($exception)
      {
          // Disable trace for internal errors.
          $this->_options['trace'] = false;
          $message = sprintf(
              "[%s] %s\n%s", // Keeping same message format
              get_class($exception),
              $exception->getMessage(),
              $exception->getTraceAsString()
          );
          trigger_error($message, E_USER_ERROR);
      }
code: protected function _logInternalError($exception)
      {
          // Disable trace for internal errors.
          $this->_options['trace'] = false;
          $message = sprintf(
              "[%s] %s\n%s", // Keeping same message format
              get_class($exception),
              $exception->getMessage(),
              $exception->getTraceAsString()
          );
          trigger_error($message, E_USER_ERROR);
      }
code_tokens: protected function _logInternalError ( $ exception ) { // Disable trace for internal errors. $ this -> _options [ 'trace' ] = false ; $ message = sprintf ( "[%s] %s\n%s" , // Keeping same message format get_class ( $ exception ) , $ exception -> getMessage ( ) , $ exception -> getTraceAsString ( ) ) ; trigger_error ( $ message , E_USER_ERROR ) ; }
docstring: Logs both PHP5 and PHP7 errors.
  
  The PHP5 part will be removed with 4.0.
  
  @param \Throwable|\Exception $exception Exception.
  
  @return void
docstring_tokens: Logs both PHP5 and PHP7 errors .