Making addslashes() multibyte aware

From: Date: Sat, 14 Dec 2013 04:22:38 +0000
Subject: Making addslashes() multibyte aware
Groups: php.internals 
Request: Send a blank email to internals+get-70633@lists.php.net to get a copy of this message
Hi all, escapeshellargs()/fgetcsv() have multibyte char support via mblen() which depends on LC_TYPE, but addslashes() don't take into count MBCS at all. addslashes() could behave like escapeshellargs(). Current addslashes() is not usable with SJIS/BIG5/etc. Depending on locale is problematic. Is it safe with multi threaded SAPI? Using mbstring feature and introduce encoding php.ini setting might be better. Any comment making addslashes() locale aware? and/or current escapeshellargs()/fgetcsv() implementation? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#70633) next »