Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18813 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68048 invoked by uid 1010); 13 Sep 2005 09:32:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68033 invoked from network); 13 Sep 2005 09:32:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2005 09:32:11 -0000 X-Host-Fingerprint: 62.244.34.170 vk.kiev.ua NetCache 5.3-5.5 Received: from ([62.244.34.170:65291] helo=ivory.vk.kiev.ua) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 48/AD-58045-A9C96234 for ; Tue, 13 Sep 2005 05:32:11 -0400 Received: from [192.168.0.8] (helo=ROCK) by ivory.vk.kiev.ua with esmtp (Exim 4.43) id 1EF794-000FSe-0P; Tue, 13 Sep 2005 12:32:06 +0300 Date: Tue, 13 Sep 2005 12:32:21 +0300 X-Priority: 3 (Normal) Message-ID: <1031242468.20050913123221@vk.kiev.ua> To: Antony Dovgal , internals@lists.php.net In-Reply-To: <43268C01.20006@zend.com> References: <43215A91.8050409@zend.com> <9CF57DC5-A18B-4264-B20B-8552B0BB66F1@gravitonic.com> <6.2.3.4.2.20050912175136.04449320@localhost> <43268C01.20006@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re[2]: [PHP-DEV] unserialize() & unicode issues From: val@vk.kiev.ua (val khokhlov) Hello Antony, Tuesday, September 13, 2005, 11:21:21 AM, you wrote: AD> Even if the class name is in Unicode, we can try to convert it to ASCII AD> and fail only in the case when we can't find its class entry in the list. I think, it's not the only way. If we don't care about being compatible with previous PHP's serialize(), a more portable way is to store class/property names in unicode (if unicode_semantics=off when serializing, convert hash keys to unicode). Since we do know script encoding, we can always downgrade unicoded names into local encoding. -- Best regards, val mailto:val@vk.kiev.ua