diff options
| author | Damien Regad <dregad@mantisbt.org> | 2021-03-08 18:32:52 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-03-08 18:32:52 +0100 |
| commit | def710065bb2b5d351a0d13b9859cf4b1334787a (patch) | |
| tree | 74f06c19dc30f037f654eca31ce11909f145b1d9 /adodb-errorpear.inc.php | |
| parent | f60a161ee06a9daba2a72ea7dd3591285ace45b0 (diff) | |
| download | adodb-def710065bb2b5d351a0d13b9859cf4b1334787a.tar.gz adodb-def710065bb2b5d351a0d13b9859cf4b1334787a.tar.bz2 adodb-def710065bb2b5d351a0d13b9859cf4b1334787a.zip | |
get/setCharSet: avoid TypeError when no connection
On mysqli, PHP 8 throws an 'Uncaught TypeError: method_exists():
Argument 1 ($object_or_class) must be of type object|string, bool
given'. Checking that _connectionID is set fixes the problem.
A similar issue was found and fixed with the postgres7 driver as well.
Note that fixing the legacy mysql driver is not necessary, as the driver
has been removed in PHP 7, and the error suppression operator should do
the job on PHP 5.
Fixes #686
Diffstat (limited to 'adodb-errorpear.inc.php')
0 files changed, 0 insertions, 0 deletions
