Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71394 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86101 invoked from network); 22 Jan 2014 05:46:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 05:46:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.181 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:40346] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/10-17975-04B5FD25 for ; Wed, 22 Jan 2014 00:46:40 -0500 Received: by mail-lb0-f181.google.com with SMTP id z5so6772536lbh.12 for ; Tue, 21 Jan 2014 21:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=u9fkXwwsMc/9omH1UNQQ+qt+ftq0osxiUHG9q2euO/I=; b=BvFofLXRXSbZLS/kLdniYtae1F4QuPO1tEWd/nd5lbxuATe2uOmtNLGYDDv7KJsmHu Lyte/vMUeEij8nhBZfdRaSjinlyV9mx0p0xB/ZvmfNCfR8wmvCMiHaV4ECWw6bnIVqMT RToCpiaGp5g81QR/u56hovIAb2esdDeZ1vqlnnrMUoJcl94w5XLDI+gUHvkjyeQaQCTc r3RspQVsz/iqHHWqN5Kffmw3wyCIl7uW/dd8FzPplC+WEdw3qIORXoUHlDzOug0VjjxY osdroX+Jg8wy1z96gqnqhYAqPzYl9s0SVp7t3K2H+gcFIom2eT7rPNDdfv7rEn/RG2AZ yL5g== MIME-Version: 1.0 X-Received: by 10.112.210.232 with SMTP id mx8mr18195902lbc.6.1390369596758; Tue, 21 Jan 2014 21:46:36 -0800 (PST) Received: by 10.112.35.134 with HTTP; Tue, 21 Jan 2014 21:46:36 -0800 (PST) In-Reply-To: <2D2D996C-9455-4DD1-9669-90AFAF591E32@strojny.net> References: <2D2D996C-9455-4DD1-9669-90AFAF591E32@strojny.net> Date: Wed, 22 Jan 2014 06:46:36 +0100 Message-ID: To: Lars Strojny Cc: Sara Golemon , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] __debug_info() From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Jan 21, 2014 at 10:37 PM, Lars Strojny wrote: > Hi Sara, > > On 21 Jan 2014, at 22:26, Sara Golemon wrote: > >> Something new to argue about: >> >> https://wiki.php.net/rfc/debug-info > > Love it, two things: the var_dump() properties will be replaced (not merg= ed) with the "real" properties in the object (I am asking as that would mak= e it very very cool for stuff like doctrine, where lazy loaded entities are= way too large to dump)? As for the name, I would prefer __debugInfo() as i= n __callStatic(). I know there is __set_state() but that's something that n= eeds deprecation and fixing :) I can only second both statements. Love the idea (very useful!) and it should indeed follow other "magic" method naming convention. One additional comment, I am not sure about the manual merge of properties. Maybe it should create an additional property called "debugInfo" or something similar and store the result of __debugInfo in it? It could be more user-friendly and less confusing. Cheers, --=20 Pierre @pierrejoye | http://www.libgd.org