Bug #18375: addslashes doesn't fit for multibyte string

From: Date: Tue, 16 Jul 2002 19:48:48 +0000
Subject: Bug #18375: addslashes doesn't fit for multibyte string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14337@lists.php.net to get a copy of this message
From: Xuefer@21cn.com Operating system: win2k PHP version: 4.2.1 PHP Bug Type: MySQL related Bug description: addslashes doesn't fit for multibyte string as described in manual, addslashes is for prepairing database queries but it don't fit for mysql4.x when charset is set to multibyte, e.g. GBK escape/unescaping multibyte string is process differently in mysql-client/mysqld (btw: i dunno why it need to do such way) when a binary data addslashes() by php sent to mysqlserver, myodbc_remove_escape mysql_escape_string need upgraded mysql library but addslashes is used to process GPC when magic_quote is on -- Edit bug report at http://bugs.php.net/?id=18375&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18375&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18375&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18375&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18375&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18375&r=support Expected behavior: http://bugs.php.net/fix.php?id=18375&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18375&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18375&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18375&r=globals

« previous php.bugs (#14337) next »