From: Andrey Hristov Date: Wed, 25 Aug 2010 15:06:47 +0000 (+0000) Subject: Fix for bug #52221 Misbehaviour of magic_quotes_runtime (get/set)) X-Git-Tag: php-5.3.4RC1~313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab778e7414b1792ce844adbebaae3ed899f6789c;p=php Fix for bug #52221 Misbehaviour of magic_quotes_runtime (get/set)) --- 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