From c57b3c653354a62c4146d62a3e4a8005b6a68e8f Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 11 Sep 2002 21:06:52 +0000 Subject: - Un-deprecating mysql_escape_string #- This will remove the annoying notices, while this function is used in # a lot of scripts. There is not reason why we should discontinue it's use # as it works perfect for about 99% of the time. --- ext/mysql/php_mysql.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/mysql/php_mysql.c') diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 82a1e3fb75..bb58953a93 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1602,8 +1602,6 @@ PHP_FUNCTION(mysql_escape_string) * be worth it */ - php_error_docref(NULL TSRMLS_CC, E_NOTICE, "This function is deprecated, please use mysql_real_escape_string() instead"); - Z_STRVAL_P(return_value) = (char *) emalloc(Z_STRLEN_PP(str)*2+1); Z_STRLEN_P(return_value) = mysql_escape_string(Z_STRVAL_P(return_value), Z_STRVAL_PP(str), Z_STRLEN_PP(str)); Z_TYPE_P(return_value) = IS_STRING; -- cgit v1.2.1