Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71414 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62047 invoked from network); 22 Jan 2014 21:23:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 21:23:34 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:32906] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/A7-13626-4D630E25 for ; Wed, 22 Jan 2014 16:23:33 -0500 Received: by mail-la0-f46.google.com with SMTP id b8so792521lan.19 for ; Wed, 22 Jan 2014 13:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=XwCFEXUx9xEjupuO/s81DSX4Fbx+/PmPUMfv/3FQTto=; b=J/+4e1fwF7HW4eJz6Z+UQYUhStIW0pTRMScwIJNMUSKs7Mk9IQbA8+jLHie9RyQFBM yRmyhMXd0A6dZXgebXf2Ow2M7N/c/Mqn6YkLhGXAUuhv600qajjNkMrEOkP3Y1bT5pbL DUZnZB4KykpqQlcN/ikFTYSRWjhpjsoN1Uv1TPzEbINBEOKx7cwqSs1NZvisb/pR0IUr VBpnfyTZ6OrGYwPP5dSpX48aqbwymoPo68EI35FMiVocRihlTC11e9wzaI8DBOq2jjUg jLEPMU/zQekTBHA/8+Jz1CS1BD4lY3C5FF4v1ZSsRdVC5hqFMXrsoex0zlYu7bcv94rS inLQ== X-Received: by 10.112.150.100 with SMTP id uh4mr2544798lbb.3.1390425809399; Wed, 22 Jan 2014 13:23:29 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.132.134 with HTTP; Wed, 22 Jan 2014 13:22:49 -0800 (PST) In-Reply-To: References: <2D2D996C-9455-4DD1-9669-90AFAF591E32@strojny.net> Date: Thu, 23 Jan 2014 06:22:49 +0900 X-Google-Sender-Auth: M4ayps7TIwzlgDOjmFQXF0kQpOs Message-ID: To: Derick Rethans Cc: Lars Strojny , Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary=047d7b33da5c74b66e04f095bc77 Subject: Re: [PHP-DEV] [RFC] __debug_info() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b33da5c74b66e04f095bc77 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Derick, On Thu, Jan 23, 2014 at 3:35 AM, Derick Rethans wrote: > > Hi all, > > > > Sorry for off topic. > > > > On Wed, Jan 22, 2014 at 6:37 AM, Lars Strojny wrote: > > > > > Love it, two things: the var_dump() properties will be replaced (not > > > merged) with the "real" properties in the object (I am asking as that > would > > > make 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 in __callStatic(). I know there is __set_state() but that's > something > > > that needs deprecation and fixing :) > > > > > > Could anyone add __setState() for 5.6? > > Why would you want to do that? If at all, all the *newer* methods should > be __debug_info etc. __set_state was first and changing it to > __setState() would mean that var_export'ed() variables in < PHP 5.6 > would now no longer work? Or the other way around? It's a cosmetic > change that helps nobody=E2=80=94just like renaming other standard functi= ons to > make them more "organised". > > cheers, I mean add alias for __set_state() to keep consistent names. __set_state() should be there very long time or forever for compatibility. It's small cosmetic change, but it would assure PHP to be a good language to learn in the future. IMHO. Anyway, I would like to write RFC for aliasing. Aliases may be added in the future. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b33da5c74b66e04f095bc77--