Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71383 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51801 invoked from network); 21 Jan 2014 21:41:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2014 21:41:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.160.51 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.160.51 mail-pb0-f51.google.com Received: from [209.85.160.51] ([209.85.160.51:45205] helo=mail-pb0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/D1-40896-099EED25 for ; Tue, 21 Jan 2014 16:41:37 -0500 Received: by mail-pb0-f51.google.com with SMTP id un15so5257523pbc.24 for ; Tue, 21 Jan 2014 13:41:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mfpNzHqFcIml6iZERB3SsO+PgKZYc/UblRlZpXPcyVg=; b=DApBf87xLafwuUQXp3lghY/1ldU89EEknK+qpSdDEGLMmvJxUilsIfsFl5WWTBNJ9+ x/XRYX9B+AC8ZYyL/0nSOkwAo7xnf99Tsk8qV98y70WBv1z9jT0/cIhCAhnk07Izrs2H oGJ0PfSzMMr9OILvVKVMu17fUymvZJf88BzckBGMx7lyNzRrUOMjG3lVaqWgqzoUJsLz VbQch7mN5lEz61ASCwQGJyQZROdTxKNvI0bnH4La6rD+06XImFQoxe96K9xbyX/UptI8 7gUMRAR2SQ3gSOw9OrCROFgyVn+Kh8Wd9/vCMsIhi53ntlLtekffIJwvtcpBk9aZKFZF Ci7Q== X-Gm-Message-State: ALoCoQkq0Yp9aUI2QwFfzzm/99eVGyir7kOT/fkHV8W0VD9vx4/QnxTpbH5e//r/XhnaGK+ijlE3 MIME-Version: 1.0 X-Received: by 10.66.248.227 with SMTP id yp3mr26874447pac.116.1390340492997; Tue, 21 Jan 2014 13:41:32 -0800 (PST) Sender: php@golemon.com Received: by 10.70.77.164 with HTTP; Tue, 21 Jan 2014 13:41:32 -0800 (PST) X-Originating-IP: [2001:470:1f09:2fa:22c9:d0ff:fe87:295b] In-Reply-To: <2D2D996C-9455-4DD1-9669-90AFAF591E32@strojny.net> References: <2D2D996C-9455-4DD1-9669-90AFAF591E32@strojny.net> Date: Tue, 21 Jan 2014 13:41:32 -0800 X-Google-Sender-Auth: EIbietfSu5AlJKgBhVDwOduowWs Message-ID: To: Lars Strojny Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] __debug_info() From: pollita@php.net (Sara Golemon) On Tue, Jan 21, 2014 at 1:37 PM, Lars Strojny wrote: > On 21 Jan 2014, at 22:26, Sara Golemon wrote: >> 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 :) > Replaced. The idea being that if you want to merge with the base props, you can return (array)$this + ['other'=3D>'props']; or similar. EXCELLENT point on the method naming, I'll put that version 1.1 of the RFC. -Sara