Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18744 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59887 invoked by uid 1010); 9 Sep 2005 13:58:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59872 invoked from network); 9 Sep 2005 13:58:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2005 13:58:22 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:54262] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 63/93-17383-DF491234 for ; Fri, 09 Sep 2005 09:58:21 -0400 Received: (qmail 24054 invoked from network); 9 Sep 2005 13:58:17 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 9 Sep 2005 13:58:17 -0000 Message-ID: <432194F7.6000703@zend.com> Date: Fri, 09 Sep 2005 17:58:15 +0400 User-Agent: Thunderbird 1.4 (X11/20050907) MIME-Version: 1.0 To: Andrei Zmievski CC: php-dev , Dmitry Stogov References: <43215A91.8050409@zend.com> <9CF57DC5-A18B-4264-B20B-8552B0BB66F1@gravitonic.com> In-Reply-To: <9CF57DC5-A18B-4264-B20B-8552B0BB66F1@gravitonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] unserialize() & unicode issues From: antony@zend.com (Antony Dovgal) On 09.09.2005 17:44, Andrei Zmievski wrote: > Yes, serialization is a problem. I would actually advocate putting a > marker in the serialized file that indicates what the value of > unicode_semantics switch was during the serialization, and if the > value is different during deserialization, refuse to load it or start > a new session. One really should not be changing that switch on a > whim in-between sessions. Why? It loads/works perfectly fine except for the problems I've mentioned. Also, you can't put any markers to the serialized _text_ (at least it sounds very bad to me), so it won't help you in this case. -- Wbr, Antony Dovgal