Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36829 invoked from network); 3 Feb 2014 21:08:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 21:08:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:50612] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/13-35654-D5500F25 for ; Mon, 03 Feb 2014 16:08:46 -0500 Received: by mail-la0-f53.google.com with SMTP id e16so5727928lan.26 for ; Mon, 03 Feb 2014 13:08:42 -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=ooVPiVZRwUjorLiymjcTj0vzsfiwCB+E3kk7J+hd2a8=; b=shOwXiQfPhnB6DroXRJjBQGEGoouSDJ6iZnWk6kK3ltSbl6/FuMrpSeR6fPvxUKMYQ 2JI3ekPqvTBeF1ljBw9kN/cINC35JQM6AqnW3+/eU9XKLXwIu0jLPF3jTlaPf6Axrgzr mGw7jN4XRdHpDPDRlex/xXgaspacHaq9ctJlbn+6yMmfYbk/xBWdumlv/JVGQB86Delq 0z+sRSabY0/xenSAdKjsKBsD6tkZPzMl5fWUwupBKhybzsvYz/GJFJXrNek5q/qMRe89 Pc8mEtEDP1IwIt3CECIUcAXr+oSLSz/fR0f1U0vNhQ/nOWRLF0RY4vRZWT2dj3BhaFG+ dCqg== X-Received: by 10.112.114.228 with SMTP id jj4mr7391846lbb.13.1391461722477; Mon, 03 Feb 2014 13:08:42 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Mon, 3 Feb 2014 13:08:02 -0800 (PST) In-Reply-To: <52F00437.7010903@googlemail.com> References: <52F00437.7010903@googlemail.com> Date: Tue, 4 Feb 2014 06:08:02 +0900 X-Google-Sender-Auth: Jds2zUy35Z2FPB6HmDRxRwO4euQ Message-ID: To: Crypto Compress Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a1134cbfcafd85304f186ed4f Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1134cbfcafd85304f186ed4f Content-Type: text/plain; charset=UTF-8 Hi Crypto, On Tue, Feb 4, 2014 at 6:03 AM, Crypto Compress < cryptocompress@googlemail.com> wrote: > This is a somewhat unexpected BC break in a point release. Why no 6.0 > option? > class Dog { public function __debugInfo() { return ['Cat']; } } > var_dump(new Dog); // Array { "Cat" } > > Name is a bit ambiguous. This method does not debug anything as in xdebug > or phpdbg. It exposes internal "__state". > __someMethod() is reserved name for internal use and it is explicitly documented. If it breaks, it's users fault. We cannot cover all of user faults... Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1134cbfcafd85304f186ed4f--