diff options
| author | Damien Regad <dregad@mantisbt.org> | 2021-01-24 17:45:05 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-01-24 17:45:05 +0100 |
| commit | 77a8f9089e50da0a92dfc916a27648929c94045d (patch) | |
| tree | be228dd8c428ef70a3434608ef79afd34cda64c2 /adodb-xmlschema.inc.php | |
| parent | 8856265c933087030627484c53d36ed5dae29e86 (diff) | |
| parent | 558b2462eaabd933cfb6f1ad852ce0c5992bb4e1 (diff) | |
| download | adodb-77a8f9089e50da0a92dfc916a27648929c94045d.tar.gz adodb-77a8f9089e50da0a92dfc916a27648929c94045d.tar.bz2 adodb-77a8f9089e50da0a92dfc916a27648929c94045d.zip | |
Merge branch 'release/5.21' into master
Diffstat (limited to 'adodb-xmlschema.inc.php')
| -rw-r--r-- | adodb-xmlschema.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adodb-xmlschema.inc.php b/adodb-xmlschema.inc.php index 0a80b90f..8aea3d1a 100644 --- a/adodb-xmlschema.inc.php +++ b/adodb-xmlschema.inc.php @@ -1243,6 +1243,7 @@ class adoSchema { /** * @var long Original Magic Quotes Runtime value * @access private + * @deprecated */ var $mgq; @@ -1289,8 +1290,8 @@ class adoSchema { * @param object $db ADOdb database connection object. */ function __construct( $db ) { - // Initialize the environment - $this->mgq = get_magic_quotes_runtime(); + // PHP7.4 spits deprecated notice, PHP8 removed magic_* stuff + $this->mgq = version_compare(PHP_VERSION, '7.4.0', '<') && function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime(); if ($this->mgq !== false) { ini_set('magic_quotes_runtime', 0); } |
