From 1d6d0f8aaf0f4328b517168073a5faad3c0fa2f5 Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Tue, 25 Jan 2011 12:51:29 +0000 Subject: [PATCH] Always bail about deprecation, make warning visible. It is documented to be deprecated in the 5.3 manual but the deprecation warning was tied to trace_mode=1 (as of 2002 or the like). --- ext/mysql/php_mysql.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 3d50e11147..4fb976b904 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1806,9 +1806,7 @@ PHP_FUNCTION(mysql_escape_string) Z_STRLEN_P(return_value) = mysql_escape_string(Z_STRVAL_P(return_value), str, str_len); Z_TYPE_P(return_value) = IS_STRING; - if (MySG(trace_mode)){ - php_error_docref("function.mysql-real-escape-string" TSRMLS_CC, E_DEPRECATED, "This function is deprecated; use mysql_real_escape_string() instead."); - } + php_error_docref("function.mysql-real-escape-string" TSRMLS_CC, E_DEPRECATED, "This function is deprecated; use mysql_real_escape_string() instead."); } /* }}} */ -- 2.40.0