Skip to content

Fix error reporting for invalid queries executed via pla#45

Open
nico-abram wants to merge 1 commit into
phpLiteAdmin:masterfrom
nico-abram:wololo
Open

Fix error reporting for invalid queries executed via pla#45
nico-abram wants to merge 1 commit into
phpLiteAdmin:masterfrom
nico-abram:wololo

Conversation

@nico-abram

@nico-abram nico-abram commented Mar 31, 2025

Copy link
Copy Markdown

The default of PDO::ATTR_ERRMODE changed to PDO::ERRMODE_EXCEPTION in PHP 8, which makes it throw an exception which stops the html output halfway through.

This sets it to the old default PDO::ERRMODE_SILENT.

Fixes #46

Since the default changed to PDO::ERRMODE_EXCEPTION
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

Successfully merging this pull request may close these issues.

Executing queries with errors does not display the error on PHP 8

1 participant