Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67012 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57797 invoked from network); 9 Apr 2013 08:18:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2013 08:18:19 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:57868] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/13-34250-9CEC3615 for ; Tue, 09 Apr 2013 04:18:17 -0400 Received: from [192.168.2.20] (ppp-93-104-28-197.dynamic.mnet-online.de [93.104.28.197]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 49BAC654B7; Tue, 9 Apr 2013 10:18:14 +0200 (CEST) To: Laruence Cc: PHP Internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 09 Apr 2013 10:19:27 +0200 Message-ID: <1365495567.2171.34.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PROPOSAL] add a leading backslash to classname when serializing/var_exporting From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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