Re: Re: cvs: php-src(PHP_5_2) / NEWS /ext/mysql php_mysql.c php_mysql.h

From: Date: Mon, 14 May 2007 18:11:05 +0000
Subject: Re: Re: cvs: php-src(PHP_5_2) / NEWS /ext/mysql php_mysql.c php_mysql.h
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-29421@lists.php.net to get a copy of this message
On 05/14/2007 09:54 PM, Scott MacVicar wrote:
It's similar to SET NAMES but isn't identical, the SQL statement can't update the internal character encoding on the client. This causes mysql_real_escape_string to perform incorrectly and can lead to data being incorrectly escaped. This in turn can lead to SQL Injections when you change from a single byte character set (latin1) which is the default to a multibyte character set. In regards to ext/mysql and ext/mysqli, most hosts don't know the difference and only enable ext/mysql, instead allow users to protect themselves or deprecate ext/mysql.
Requiring PHP 5.2.3 instead of requiring MySQLi looks like a nonsense to me. -- Wbr, Antony Dovgal

« previous php.internals (#29421) next »