Re: [PROPOSAL] add a leading backslash to classname when serializing/var_exporting

From: Date: Mon, 15 Apr 2013 02:56:18 +0000
Subject: Re: [PROPOSAL] add a leading backslash to classname when serializing/var_exporting
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-67082@lists.php.net to get a copy of this message
hey: thanks very much for all feedbacks. so, maybe we should document this instead of adding lead backslash? thanks On Wed, Apr 10, 2013 at 5:36 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > On 04/09/2013 01:23 PM, Madara Uchiha wrote: > > Well, why would you need to serialize an object in one version of PHP, > > and unserialize it in another? > > Unfortunately people do that all the time. They store serialized > versions of stuff in databases and other backends and even send it > across the wire from one machine to another, so it is quite common for > something serialized in one version to need to be unserialized in another. > > -Rasmus > > -- Laruence Xinchen Hui http://www.laruence.com/

« previous php.internals (#67082) next »