Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30170 invoked from network); 9 Apr 2013 20:23:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2013 20:23:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=dor.tchizik@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dor.tchizik@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.43 as permitted sender) X-PHP-List-Original-Sender: dor.tchizik@gmail.com X-Host-Fingerprint: 209.85.219.43 mail-oa0-f43.google.com Received: from [209.85.219.43] ([209.85.219.43:44945] helo=mail-oa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/D4-07032-5B874615 for ; Tue, 09 Apr 2013 16:23:17 -0400 Received: by mail-oa0-f43.google.com with SMTP id l10so7883803oag.2 for ; Tue, 09 Apr 2013 13:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Brf7BHKykpel4XnjaUBAfBv53tXH4f1kEHdz7OtZyQw=; b=gyBeer/mF0OhMvX/L8Q0VerkUf2cVDWi3T2GQmGtaS56D8CgT2TDYgvP1IRo3yWFAB G4d8lZF8ptJJ0IIfwgUiiYD2ovE3iduYhijCts85Diwq9GB8tX+5poy4HyIJZBRHjZYd XhDTMAezcEBj5RyNH+msFLpLTxun8hNbAQn3Itei9Jyw76oOgmI0SvsNMbuXeh0ljHgH frLL1/W0Eoz5JSmakgp/2yxs9YY1iPDr9WwStRGqHMfgsmaK5c98aA0WB7fg/8TBIVn3 kxh6gCEPrCBRcL0MFBxi4cBHojcnNQTVWUG/o21DZeEVWcGcYfjoCelITU8rClKUd2NT NC+A== MIME-Version: 1.0 X-Received: by 10.60.135.131 with SMTP id ps3mr12358536oeb.131.1365538994335; Tue, 09 Apr 2013 13:23:14 -0700 (PDT) Received: by 10.182.128.69 with HTTP; Tue, 9 Apr 2013 13:23:14 -0700 (PDT) In-Reply-To: <51647536.6030108@sugarcrm.com> References: <51647536.6030108@sugarcrm.com> Date: Tue, 9 Apr 2013 23:23:14 +0300 Message-ID: To: Stas Malyshev Cc: Laruence , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PROPOSAL] add a leading backslash to classname when serializing/var_exporting From: dor.tchizik@gmail.com (Madara Uchiha) 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 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 >