Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong argument order in exception throwing #4

Open
afluegel9 opened this issue Jul 7, 2022 · 0 comments
Open

Wrong argument order in exception throwing #4

afluegel9 opened this issue Jul 7, 2022 · 0 comments

Comments

@afluegel9
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant