Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72303 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91623 invoked from network); 5 Feb 2014 22:36:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 22:36:23 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.176 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.128.176 mail-ve0-f176.google.com Received: from [209.85.128.176] ([209.85.128.176:60981] helo=mail-ve0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/9A-38005-6ECB2F25 for ; Wed, 05 Feb 2014 17:36:22 -0500 Received: by mail-ve0-f176.google.com with SMTP id oz11so848603veb.7 for ; Wed, 05 Feb 2014 14:36:19 -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=znPL64so86PFCR2CTV321AugA3y7gakGlxCBwIrsGL4=; b=FR7vFSyuK17JQVvrs7pQlvydWdwFXnhzboA/0i4rmiltdwuYjr+WK4phjReasp8lbX n1cjioBTWbjauzW3IYvXkUOMPzlpzFg2G7I6pi2M40ilcJmW6dAMJFdJg62tlR4CLj6E FUybPVM4d8do/Ypzy8CK69+lhP1pGI2A0E9poSALWoiQzb2RdiRIEPPVlXVLzfFQQWay FpIgms/Q78jZ7dIynVdmvple4tFsnaRBNC+B2Ph63jyhmH2jQm7UiGi39EAg5G/A+AkK kUwt2zTdaPFMdHWnRme106gDbRAPmdXTtblaL+LLYU54KYGBc3HJDCeu11L0FpYe5vds XxJQ== X-Received: by 10.53.1.231 with SMTP id bj7mr339989vdd.55.1391639778968; Wed, 05 Feb 2014 14:36:18 -0800 (PST) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.52.105.167 with HTTP; Wed, 5 Feb 2014 14:35:58 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Feb 2014 23:35:58 +0100 X-Google-Sender-Auth: -Hx5eDzIXEB_szhRWdJY-HKqLy4 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1133ed3aae4c1704f1b0628f Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --001a1133ed3aae4c1704f1b0628f Content-Type: text/plain; charset=ISO-8859-1 Hi Sara, https://wiki.php.net/rfc/debug-info > I can't resist telling you about patchwork/dumperbecause it has all you seem to look for. Except internal info that are hidden from user land, it has a higher accuracy than var_dump(), because it can dump soft *and* hard references inside complex data structures. It also offers tailor made output with the ability to enrich objects/resources with custom "casters" . Maybe this can fuel some ideas? For example, I would suggest that any error thrown from a call to __debugInfo() should be ignored by var_dump()/print_r(). Cheers, Nicolas --001a1133ed3aae4c1704f1b0628f--