svn: /php/php-src/trunk/ext/mysql/ php_mysql.c

From: Date: Tue, 25 Jan 2011 12:51:29 +0000
Subject: svn: /php/php-src/trunk/ext/mysql/ php_mysql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-64427@lists.php.net to get a copy of this message
uw Tue, 25 Jan 2011 12:51:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307730 Log: 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). Changed paths: U php/php-src/trunk/ext/mysql/php_mysql.c Modified: php/php-src/trunk/ext/mysql/php_mysql.c =================================================================== --- php/php-src/trunk/ext/mysql/php_mysql.c 2011-01-25 12:39:39 UTC (rev 307729) +++ php/php-src/trunk/ext/mysql/php_mysql.c 2011-01-25 12:51:29 UTC (rev 307730) @@ -1806,9 +1806,7 @@ 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."); } /* }}} */

« previous php.cvs (#64427) next »