| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/phpMyAdmin-moncbefd/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;
}
}