diff options
author | Ulf Wendel <uw@php.net> | 2011-01-25 12:51:29 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2011-01-25 12:51:29 +0000 |
commit | 1d6d0f8aaf0f4328b517168073a5faad3c0fa2f5 (patch) | |
tree | 1951a11ec3e02dcde07fc2f6acccb455a68b5602 /ext/mysql/php_mysql.c | |
parent | 4a946a91e5d0e431126e38bf53efce75d7b66324 (diff) | |
download | php-git-1d6d0f8aaf0f4328b517168073a5faad3c0fa2f5.tar.gz |
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).
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 1 insertions, 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."); } /* }}} */ |