Re: unserialize() & unicode issues

From: Date: Fri, 09 Sep 2005 13:58:15 +0000
Subject: Re: unserialize() & unicode issues
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-18744@lists.php.net to get a copy of this message
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

« previous php.internals (#18744) next »