From ab778e7414b1792ce844adbebaae3ed899f6789c Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Wed, 25 Aug 2010 15:06:47 +0000 Subject: [PATCH] Fix for bug #52221 Misbehaviour of magic_quotes_runtime (get/set)) --- ext/mysqlnd/mysqlnd_result.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0