Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47276 invoked from network); 7 Feb 2017 13:38:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2017 13:38:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:36934] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/69-03389-FBDC9985 for ; Tue, 07 Feb 2017 08:38:09 -0500 Received: by mail-wm0-f48.google.com with SMTP id v77so155065890wmv.0 for ; Tue, 07 Feb 2017 05:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=WrS/2GlPIP4Cbyl8c2msxv/cd9bwzA5mBaXzjOraY5Y=; b=WOKzEsbqijnKHQhbglAkmZfyyrWvjg5qi+WEkUdiHEqLE/D3Nioamif1UWhi5OojUV S2bm8W9e9BHSs9mDkBUQ0gjgrkzTbfu7zv1W9woK2moxaX1fyquIAWtPF3cgcWVS9yG9 TuuDEwxee/zBFM9jKIzxJviiDvVDnLd7wTWNudfGj2uxmhK07PrCP9m1YcisXbDMPF11 eQsF9+EjUDEl1rbfpRw6Ma+zFBrlKKIfIdS4hvTGCzbbbvf8lCcIcj9Z6VVFA0riUkNh 4x4+gO2Uhf6hkTftxreOWScfRwlxi+lzuVx+LiYRdEF6gmb4fp//JJ6Lxz/pCanYIaRs srvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=WrS/2GlPIP4Cbyl8c2msxv/cd9bwzA5mBaXzjOraY5Y=; b=idwdmEkiDPfIAp99tTCFHxsY8ae4NctXmgPIxQnuOmneOcUeSwxnRRwDbUPJXqPeFQ QR0ymo0S92pkHJLHlhQLtLg64bfp2zaY3sS99VPuomJrT0DRIXdf9irMtJaYQEeobvC7 uXv7ZvimakwRa8OKnwSEG4duiO60XVg0JycmYqzFeC4OTWvYfUk1esz5FxYWvbeCTVCl X4mklVkCuDVrRChiJSxlZLfBvZ1lwSPpUeFAxYnHYEXevH/J/4PedepS8KvuF5apRqWj 8mmq9xOIteitWlN/m1BNFwjAVsIfmdpWemQ06fWJtGNLQ9xPepF4iUV+q732t1OgP57X zAXw== X-Gm-Message-State: AMke39k/YwSQp/6RJZxNNIvMjoH7ZpBn8ogzuXICBIZD01DMTJbHHMxabKkoG3fSNeR0zQ== X-Received: by 10.28.215.206 with SMTP id o197mr12067677wmg.31.1486474683627; Tue, 07 Feb 2017 05:38:03 -0800 (PST) Received: from [10.7.204.147] (188.29.165.205.threembb.co.uk. [188.29.165.205]) by smtp.gmail.com with ESMTPSA id m29sm7383860wrm.38.2017.02.07.05.38.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 05:38:02 -0800 (PST) Date: Tue, 07 Feb 2017 13:37:59 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: Subject: Re: [PHP-DEV] Change debug_zval_dump to return the dump unaffected by __debugInfo? From: rowan.collins@gmail.com (Rowan Collins) On 7 February 2017 11:25:53 GMT+00:00, Wes wrote: >But even better, it would be nice if debug_zval_dump() always returned >the >debug information unaffected by custom user-defined __debugInfo=2E This >is by >the way what HHVM does: https://3v4l=2Eorg/OoJkC While it might be a good idea to have a way of suppressing __debugInfo (I = think this came up in the RFC discussion when it was added?), I think debug= _zval_dump should be deprecated and removed at this point=2E The main thing it claims to offer over the many other variable dumps is th= e refcount, but this has never been reliable, and is now completely broken= =2E The example in the manual recommends using call-time pass-by-reference,= which was removed in PHP 5=2E4; and in PHP 7 the nature of references has = changed so radically that it's not even clear what the correct output would= be=2E Regards, --=20 Rowan Collins [IMSoP]