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

From: Date: Tue, 09 Apr 2013 20:23:14 +0000
Subject: Re: [PROPOSAL] add a leading backslash to classname when serializing/var_exporting
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-67020@lists.php.net to get a copy of this message
Well, why would you need to serialize an object in one version of PHP, and unserialize it in another? On Tue, Apr 9, 2013 at 11:08 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > >> 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. > > I'm not sure what this has to do with serialize. For var_export it may > be useful but the use case looks kind of limited. I can't think of a > common case where such change would be beneficial, and since it's a BC > break I don't think it is worth it, unless we can find a real use case > where it is necessary. In the original bug, it says that the user would > use var_export in different namespace, but why would you need to do this? > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#67020) next »