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

From: Date: Tue, 09 Apr 2013 07:20:56 +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-67010@lists.php.net to get a copy of this message
For consistency, in strings we should already be using the FQCN implicitly. Therefore output of serialization and var_export should not need the leading backslash. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 9 April 2013 06:38, Madara Uchiha <dor.tchizik@gmail.com> wrote: > Sounds good. With PHP moving in closer and closer with namespaces, this > proposal will save some confusion in the more complex application > debugging. I support. +1 > On Apr 9, 2013 6:29 AM, "Laruence" <laruence@php.net> 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? > > > > thanks > > > > -- > > Laruence Xinchen Hui > > http://www.laruence.com/ > > >

« previous php.internals (#67010) next »