| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/PMA_V9ihNO9bwoMp/vendor/phpmyadmin/sql-parser/src/ |
Upload File : |
<?php
/**
* Defines the core helper infrastructure of the library.
*/
namespace PhpMyAdmin\SqlParser;
class Core
{
/**
* Whether errors should throw exceptions or just be stored.
*
* @var bool
*
* @see static::$errors
*/
public $strict = false;
/**
* List of errors that occurred during lexing.
*
* Usually, the lexing does not stop once an error occurred because that
* error might be false positive or a partial result (even a bad one)
* might be needed.
*
* @var Exception[]
*
* @see Core::error()
*/
public $errors = array();
/**
* Creates a new error log.
*
* @param \Exception $error the error exception
*
* @throws \Exception throws the exception, if strict mode is enabled
*/
public function error($error)
{
if ($this->strict) {
throw $error;
}
$this->errors[] = $error;
}
}