Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40671 invoked from network); 7 Feb 2017 11:25:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2017 11:25:57 -0000 Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.171 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.161.171 mail-yw0-f171.google.com Received: from [209.85.161.171] ([209.85.161.171:34928] helo=mail-yw0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/D8-03389-4CEA9985 for ; Tue, 07 Feb 2017 06:25:57 -0500 Received: by mail-yw0-f171.google.com with SMTP id l19so64890769ywc.2 for ; Tue, 07 Feb 2017 03:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=sDCoAkiGfZyjAL6R/fFE39M8HtELpM1JtYM6ZhrEmgE=; b=ZNWuieT0ZbGjPfgVskRtumwGWbZ5oU8QY59u7jUDYMr06MqP/HGJ7rVvl+oiKxI2Cy U+ae08H2XK7KWXVqRVojzzV3vL02KrSySIUs8kGeHF2qncp6awbDP1CUqVv0q+Bems8B p2pTK3JSldvsYL9WFufPTpt+COdj4P6RmWkZAoTEaDb7eS2AosMWi1DMWITMH1e5Le13 ZAOE1cFhkKD7UkVE45qiI+bqMx1hJlK/qjH0YMJ/kJSchydCpuI3JsWUM/VP90bSPdts vfCgW3rJfNZEtNXOXo7NZ0bpqnAWE11h3aYMtZrzdUgDAg+EcliNQ0syWZwSvniayYmv w45Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sDCoAkiGfZyjAL6R/fFE39M8HtELpM1JtYM6ZhrEmgE=; b=fWI+ynjmXocZzlBeREMF+BOsW2KbiB2OQLkvRqKFGk7YCzsO4F3QDwgRfrmbZwnGuW U6VHzgYMVnG/sRewzLtJh1atKHb7u6r7u5Xsye9ycqBdBbCwLa6y7S8pzTruaRF47Rp4 1PmWZdsrbrQ/CgNa2xQLR+gRYfLlVulaCfeqTnXxLAKenza3AA3eK3PjaSu+ajsufxdT I4Xcyakoq3vIPPpeWVHgMgCGKZVOsZU7GDsStwEfb1m4EVEMGKqvI1pze6WMvJ6Sed/9 eIXNYHYpNljC4xEO2QGGfFhnTQc4QgPm9uZ3RmCEdNdRAXP1gzV2gQUIBI6Taz0AJYqf CKzw== X-Gm-Message-State: AIkVDXKN3f0RhrQ8YxPD4pvD7l07ikl2RQe3XZ52MhNyixRdiI+L+gp/bouAXko0kKRJjcPRKB5ilsx4/zEPmQ== X-Received: by 10.129.80.212 with SMTP id e203mr11608765ywb.111.1486466753425; Tue, 07 Feb 2017 03:25:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.128.71 with HTTP; Tue, 7 Feb 2017 03:25:53 -0800 (PST) Date: Tue, 7 Feb 2017 12:25:53 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a1147e4aecf110a0547ef0216 Subject: [PHP-DEV] Change debug_zval_dump to return the dump unaffected by __debugInfo? From: netmo.php@gmail.com (Wes) --001a1147e4aecf110a0547ef0216 Content-Type: text/plain; charset=UTF-8 Hello Internals. Today I'm fighting with some code that I think uses var_dump() and output buffering to create the output for __debugInfo... or something like that - I'm not really interested into finding the cause :P Anyway, It's not the first time I find myself paralyzed by a slightly broken __debugInfo, including with code that I've written myself (I hate that guy). One big problem is that once you have overriden it in a super class, you can't revert __debugInfo back to the php's implementation easily; the following doesn't actually do the same thing: function __debugInfo(){ return (array)$this; } But even better, it would be nice if debug_zval_dump() always returned the debug information unaffected by custom user-defined __debugInfo. This is by the way what HHVM does: https://3v4l.org/OoJkC Thoughts? --001a1147e4aecf110a0547ef0216--