Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5912 invoked from network); 22 Jan 2014 09:18:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 09:18:07 -0000 Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-we0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:41756] helo=mail-we0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/E1-28690-ECC8FD25 for ; Wed, 22 Jan 2014 04:18:06 -0500 Received: by mail-we0-f169.google.com with SMTP id u57so98434wes.0 for ; Wed, 22 Jan 2014 01:18:03 -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 :content-type; bh=ddVWxhPekzfbyv6B5u/OZlg4S7Lz9RMdvsgpBPQHwIA=; b=IbuQo3q/LOI4QT0vatNnWxNPn0qwRbpZ5REKe2zDvfcK3U3Bjlg3Sv1AigXnVVO31P 718qkQwJpiGhikkE4cMzqtnbHGxklyY23fOLomwDW99K2jOPWJ9S85L+i5BrkPxmWNOb vsNMVWcje/fsx0t5/fGcV8dDzBvss6QpA8IMaF1WP5kH4nfDPozKuC6keXXC8uptTJFs 9SuzbkqVRnhlXrUmFpnUochFVdQHqYsy95ktMa0GP8KdgBngqHznUz6o+jpa4qZP3TL5 exVIEC0hglaCJGeI6Ld1U+bw4CWg/j8g14QtLihEpagGyrHt9aA9g2bIPvGPXnPgFfzT fB7Q== MIME-Version: 1.0 X-Received: by 10.194.118.228 with SMTP id kp4mr49860wjb.94.1390382283600; Wed, 22 Jan 2014 01:18:03 -0800 (PST) Received: by 10.194.48.81 with HTTP; Wed, 22 Jan 2014 01:18:03 -0800 (PST) In-Reply-To: <52DF7D00.2070901@hoa-project.net> References: <52DF7D00.2070901@hoa-project.net> Date: Wed, 22 Jan 2014 13:18:03 +0400 Message-ID: To: PHP internals list Content-Type: multipart/alternative; boundary=089e011845281dbb9204f08b9ab4 Subject: Re: [PHP-DEV] [RFC] __debug_info() From: lisachenko.it@gmail.com (Alexander Lisachenko) --089e011845281dbb9204f08b9ab4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I would like to notice, that there is method __set_state() that can be used to set internal state of object. We can introduce __get_state() method that will be invoked in var_dump(), etc... Personally I don't like __lower_caps name of this method, but it will be consistent with __set_state() :) 2014/1/22 Ivan Enderlin @ Hoa > Hello :-), > > > On 21/01/2014 22:42, Fr=C3=A9d=C3=A9ric Hardy wrote: > >> Hi all ! >> >> Le 21 janv. 2014 =C3=A0 22:26, Sara Golemon a =C3=A9cr= it : >> >> Something new to argue about: >>> >>> https://wiki.php.net/rfc/debug-info >>> >> Very interesting feature (i have personally thinking about that several >> time in the past). >> However, i think that __dump() is a better name from the end user point >> of view. >> __debug_info() is a good name from the point of view of a C developer >> which works on the Zend Engine or on C extensions, but from the end user >> point of view, it=E2=80=99s not the case. >> And this new magical method is used internally by var_dump() so __dump() >> seems to me a better name. >> Maybe __set_dump() is an alternative too, because __set_state() is used >> internally by var_export(), but i=E2=80=99m not sure that it=E2=80=99s a= better name than >> __dump which is very explicit and intuitive. >> > +1 for `__debug` which is simpler than `__debugInfo`. The -info suffix > does not add any relevant meaning about the method behavior. > > Moreover, is this method able to throw an exception? > > > Cheers. > > -- > Ivan Enderlin > Developer of Hoa > http://hoa-project.net/ > > PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) > http://disc.univ-fcomte.fr/ and http://www.inria.fr/ > > Member of HTML and WebApps Working Group of W3C > http://w3.org/ > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e011845281dbb9204f08b9ab4--