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

From: Date: Tue, 09 Apr 2013 08:19:27 +0000
Subject: Re: [PROPOSAL] add a leading backslash to classname when serializing/var_exporting
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-67012@lists.php.net to get a copy of this message
On Tue, 2013-04-09 at 11:28 +0800, Laruence wrote: > Hey: > > bug is described at #64554 > > I proposal to add a leading backslash to all classnames (not only ns > names, since no harm, consistent and make sense) when doing serialize, > var_export etc. > > what do you think? This breaks compatibility with serialization with <=5.2. Right now, when using no namespaces, you can serialiaze things in 5.6-dev and unserialize in older versions. In the bug I also don't see a need for doing this in serialize. unserialize should know those are fully qualified. var_export is a bit more nifty. I see a similar compatibility issue as with serialize but also the use case ... johannes

« previous php.internals (#67012) next »