Skip to content

Notice in ./vendor/phpmyadmin/sql-parser/src/Parser.php#483 #413

Closed
@liviuconcioiu

Description

@liviuconcioiu

Steps to reproduce:

  1. Go to https://demo.phpmyadmin.net/QA_5_2/index.php?route=/database/sql&db=sakila
  2. Paste ANALYZE - only with this word it can be reproduced.
  3. Click on a database from the left side

Depending on settings, is either a warning or a notice. It happens on both QA_5_2 and master.

19.01.2023_20.26.01_REC.mp4
Notice in ./vendor/phpmyadmin/sql-parser/src/Parser.php#483
Trying to get property 'keyword' of non-object

Backtrace

Parser.php#377: PhpMyAdmin\SqlParser\Parser->parse()
Linter.php#126: PhpMyAdmin\SqlParser\Parser->__construct()
LintController.php#59: PhpMyAdmin\Linter::lint(string 'ANALYZE')
Routing.php#191: PhpMyAdmin\Controllers\LintController->__invoke(
,
array,
)
index.php#43: PhpMyAdmin\Routing::callControllerForRoute(
,
string '/lint',
,
,
)
Warning in ./vendor/phpmyadmin/sql-parser/src/Parser.php#483
Attempt to read property "keyword" on null

Backtrace

    Parser.php#377: PhpMyAdmin\SqlParser\Parser->parse()
    Linter.php#125: PhpMyAdmin\SqlParser\Parser->__construct()
    LintController.php#59: PhpMyAdmin\Linter::lint(string 'ANALYZE')
    Routing.php#167: PhpMyAdmin\Controllers\LintController->__invoke(
    ,
    array,
    )
    Common.php#325: PhpMyAdmin\Routing::callControllerForRoute(
    ,
    ,
    ,
    )
    index.php#32: PhpMyAdmin\Common::run()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions