derick Wed Sep 11 17:06:53 2002 EDT
Modified files:
/php4/ext/mysql php_mysql.c
Log:
- 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.
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.160 php4/ext/mysql/php_mysql.c:1.161
--- php4/ext/mysql/php_mysql.c:1.160 Mon Sep 9 11:53:05 2002
+++ php4/ext/mysql/php_mysql.c Wed Sep 11 17:06:52 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.160 2002/09/09 15:53:05 georg Exp $ */
+/* $Id: php_mysql.c,v 1.161 2002/09/11 21:06:52 derick Exp $ */
/* TODO:
*
@@ -1601,8 +1601,6 @@
* we don't realloc() down to the real size since it'd most probably not
* 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));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php