Skip to content

Wrong argument order in exception throwing #4

@afluegel9

Description

@afluegel9

If mysqli is not available, i get the following misleading error message during inclusion of wrapper-mysql.php:
PHP Fatal error: Uncaught TypeError: Exception::__construct(): Argument kinghost/php5-compat#2 ($code) must be of type int, string given in Standard input code:2
Stack trace:
#0 Standard input code(2): Exception->__construct()
kinghost/php5-compat#1 {main}
thrown in Standard input code on line 62

Line 62 should imo read:
throw new Exception ('MySQL wrapper requires the mysqli extension', E_ERROR);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions