summaryrefslogtreecommitdiff
path: root/adodb-xmlschema.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-01-24 17:45:05 +0100
committerDamien Regad <dregad@mantisbt.org>2021-01-24 17:45:05 +0100
commit77a8f9089e50da0a92dfc916a27648929c94045d (patch)
treebe228dd8c428ef70a3434608ef79afd34cda64c2 /adodb-xmlschema.inc.php
parent8856265c933087030627484c53d36ed5dae29e86 (diff)
parent558b2462eaabd933cfb6f1ad852ce0c5992bb4e1 (diff)
downloadadodb-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.php5
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);
}