summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-08-25 15:06:47 +0000
committerAndrey Hristov <andrey@php.net>2010-08-25 15:06:47 +0000
commitab778e7414b1792ce844adbebaae3ed899f6789c (patch)
treea741bb0b6556010fd4783d8f353e178a95971f5a
parent7a83093a3b808e88848153d216cf35665ac9f161 (diff)
downloadphp-git-ab778e7414b1792ce844adbebaae3ed899f6789c.tar.gz
Fix for bug #52221 Misbehaviour of magic_quotes_runtime (get/set))
-rw-r--r--ext/mysqlnd/mysqlnd_result.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c
index db2307ae57..2079240f64 100644
--- a/ext/mysqlnd/mysqlnd_result.c
+++ b/ext/mysqlnd/mysqlnd_result.c
@@ -1540,6 +1540,8 @@ MYSQLND_METHOD(mysqlnd_res, fetch_into)(MYSQLND_RES * result, unsigned int flags
break;
default:exit(0);
}
+ } else if (extension == MYSQLND_MYSQLI && PG(magic_quotes_runtime)) {
+ php_error_docref(NULL TSRMLS_CC, E_ERROR, "magic_quotes_runtime are not supported by mysqlnd. They were deprecated in PHP 5.3 ");
}
/*
return_value is IS_NULL for no more data and an array for data. Thus it's ok