| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/root/proc/2388322/cwd/3rdparty/phpMyAdmin/vendor/phpmyadmin/sql-parser/src/ |
Upload File : |
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser;
use Exception;
/**
* Defines the core helper infrastructure of the library.
*/
class Core
{
/**
* Whether errors should throw exceptions or just be stored.
*
* @see static::$errors
*
* @var bool
*/
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.
*
* @see Core::error()
*
* @var Exception[]
*/
public $errors = [];
/**
* Creates a new error log.
*
* @param Exception $error the error exception
*
* @return void
*
* @throws Exception throws the exception, if strict mode is enabled.
*/
public function error($error)
{
if ($this->strict) {
throw $error;
}
$this->errors[] = $error;
}
}