summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-09-11 21:06:52 +0000
committerDerick Rethans <derick@php.net>2002-09-11 21:06:52 +0000
commitc57b3c653354a62c4146d62a3e4a8005b6a68e8f (patch)
tree2345685fec51416027ef913f59ef25fec44521c4 /ext/mysql/php_mysql.c
parent54e066b20bb058431d1682fe5624017d4e3772d2 (diff)
downloadphp-git-c57b3c653354a62c4146d62a3e4a8005b6a68e8f.tar.gz
- 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.
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 0 insertions, 2 deletions
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;