diff options
| author | Damien Regad <dregad@mantisbt.org> | 2022-02-20 00:33:09 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2022-02-20 00:33:09 +0100 |
| commit | fdf2abb54f85e43cbe50c31b600ee45498c441ea (patch) | |
| tree | 6858420d5fae65a1e8931910e1fa65dadd48e255 /adodb.inc.php | |
| parent | f08327a5c9a32f88315af1d4d5f8bcba3ba672d9 (diff) | |
| download | adodb-fdf2abb54f85e43cbe50c31b600ee45498c441ea.tar.gz adodb-fdf2abb54f85e43cbe50c31b600ee45498c441ea.tar.bz2 adodb-fdf2abb54f85e43cbe50c31b600ee45498c441ea.zip | |
Remove mysql, mysqlpo and mysqlt drivers
These legacy drivers are all based on the old mysql extension, which was
deprecated in PHP 5.5 and removed in PHP 7.0.
Fixes #804
Diffstat (limited to 'adodb.inc.php')
| -rw-r--r-- | adodb.inc.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/adodb.inc.php b/adodb.inc.php index b8f1202c..1e83a8ec 100644 --- a/adodb.inc.php +++ b/adodb.inc.php @@ -5365,12 +5365,8 @@ class ADORecordSet implements IteratorAggregate { break; case 'mysql': - // mysql driver deprecated since 5.5, removed in 7.0 - // automatically switch to mysqli - if(version_compare(PHP_VERSION, '7.0.0', '>=')) { - $db = 'mysqli'; - } - $class = $db; + // mysql extension removed in PHP 7.0 - automatically switch to mysqli + $class = $db = 'mysqli'; break; default: |
