Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68731 invoked by uid 1010); 9 Sep 2005 14:09:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68715 invoked from network); 9 Sep 2005 14:09:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2005 14:09:56 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:58835] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 9F/05-17383-3B791234 for ; Fri, 09 Sep 2005 10:09:55 -0400 Received: from [192.168.1.103] ([66.90.6.56]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-4) with ESMTP id j89E9pis021781; Fri, 9 Sep 2005 07:09:52 -0700 In-Reply-To: <432194F7.6000703@zend.com> References: <43215A91.8050409@zend.com> <9CF57DC5-A18B-4264-B20B-8552B0BB66F1@gravitonic.com> <432194F7.6000703@zend.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: php-dev , Dmitry Stogov Content-Transfer-Encoding: 7bit Date: Fri, 9 Sep 2005 07:09:50 -0700 To: Antony Dovgal X-Mailer: Apple Mail (2.733) Subject: Re: [PHP-DEV] unserialize() & unicode issues From: andrei@gravitonic.com (Andrei Zmievski) The problems you encountered are fairly big, I wouldn't just dismiss them. -Andrei On Sep 9, 2005, at 6:58 AM, Antony Dovgal wrote: > 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 >