@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
usr
/
share
/
php
/
PhpMyAdmin
/
SqlParser
/
Path :
Upload File :
New :
File
Dir
//usr/share/php/PhpMyAdmin/SqlParser/Core.php
<?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; } }