Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67010 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51746 invoked from network); 9 Apr 2013 07:21:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2013 07:21:23 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.181 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.181 mail-we0-f181.google.com Received: from [74.125.82.181] ([74.125.82.181:42370] helo=mail-we0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/F1-34250-F61C3615 for ; Tue, 09 Apr 2013 03:21:20 -0400 Received: by mail-we0-f181.google.com with SMTP id d7so5155281wer.40 for ; Tue, 09 Apr 2013 00:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=z2+Fx4sfSJ6/ttFrZ9uOA8/jyYdE6maejTJf8QbqAA4=; b=sJdTojHJOgnMsGisC0/Pa66jdYxgY6bk7moDjRkVEiKAMCwYZ4NIlvOw4EzICBYh+a FPmsDSLCBcKOFf3zI/BTO9Nv4gm/+uaFLIwC7zVu7miXhR+DQkW97Xxanj10RmgKKf29 WSrfOWl7aVtQqh+Os2yPI7eSTLEykdsHnbkPoRj3TAFzC+tffuNz1ut/vG7bvXejTn0o LLPJH0ldCaE7bqGFmcLBk9SPBdTVyqPVEET90kswLcGGG6HTXY3A7QPo/4+oAmI8AdrO BxXhmZkUyIsuNMz/SBa1xldsSeEzs29yOE6hmdkP1nGS2ITCqHuyRHNkH9ewC10hXwEy gq/A== X-Received: by 10.180.101.41 with SMTP id fd9mr17314116wib.20.1365492076904; Tue, 09 Apr 2013 00:21:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.58.168 with HTTP; Tue, 9 Apr 2013 00:20:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Apr 2013 09:20:56 +0200 Message-ID: To: Madara Uchiha Cc: Laruence , PHP Internals Content-Type: multipart/alternative; boundary=f46d041826c230099804d9e866dc Subject: Re: [PHP-DEV] [PROPOSAL] add a leading backslash to classname when serializing/var_exporting From: ocramius@gmail.com (Marco Pivetta) --f46d041826c230099804d9e866dc Content-Type: text/plain; charset=UTF-8 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 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" 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/ > > > --f46d041826c230099804d9e866dc--