Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113319 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84296 invoked from network); 27 Feb 2021 20:49:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Feb 2021 20:49:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1586118050B for ; Sat, 27 Feb 2021 12:38:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Feb 2021 12:38:46 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id u11so4590756wmq.5 for ; Sat, 27 Feb 2021 12:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=YZ5CQJzULkUHfJChpd1SCzRuW6ThXUeP4QAn476BUyg=; b=R/4Z2N8KOQ4Lw2cLdqRquUfygxWwjsWqS6H0v7dtt8B5H0o3Gmw6ZLvhJdVw8RBXP7 mI6UbF2I4UegH9FKQmnhRDK1TG3ZkLxdvbFHqkKgEx4IOu/acXjTA3phCsN1yLrxZ2Vv t1Zd8TNkY1MC/qrikhZLYM1gDfXbYlqeiRmwAHEUbdCdb5CdKB/NiTyZSfGw5QR8PNMH CTK8tnrmJiPduq2I4S3yHmkzFnmHvZUr7iAVaWajgQhwPOMcOW9NGJX3U42C+ApLpbSF 8p6wp5v+8O9CzUQsNJY7j6kiLl9JMfK7TvQOhzw6P029sV68zPUH2hizbEphtzaNBzaT ipig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YZ5CQJzULkUHfJChpd1SCzRuW6ThXUeP4QAn476BUyg=; b=lSGduD20c9c0FuL37JfiWidlZtwyMPNIyMZjGq75DtJ8JGife2bNIVIe235HTgcGT9 ltKHrOps/XpxLinwlDIspfZPDAMILy5eFz8YAhxxc/WXY43Exkqsf4KWIBOlck+skRWi te1lmuYKJl1LmRC8XuHdnTES4OlmHMn7cBCm7fNOCuveoowmKyKyIRtzpkWXF8wj27mY rs6/qZ/wKFQSEgxQJ30FpM54y68yqi5FZvRfE84NjkddMmM3GxJQPXcjItEmO0Btn69t TRmDuRE4mPOunCG8oteugkouNkLESlQXODKVpQrww8v9fE1IG19oR7R3mpEi8KHfISaL iqng== X-Gm-Message-State: AOAM532KW9wRXQY+tHlFT62ITrolBVNZD86DUHe2IhDDHPa5g4fRiKWW n60TXvNf11yjnsnV3s3uPwu9ot51hX8= X-Google-Smtp-Source: ABdhPJxczA+agCyxvCpjt/J9CUfWAN5wfuRr31jmfXrHB0bM+t+8bgr4DfC3noucaUqk5WX8wEbiaQ== X-Received: by 2002:a1c:e184:: with SMTP id y126mr8594969wmg.163.1614458325177; Sat, 27 Feb 2021 12:38:45 -0800 (PST) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id l15sm3539889wme.43.2021.02.27.12.38.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Feb 2021 12:38:44 -0800 (PST) To: internals@lists.php.net References: <62243527-96EC-4234-AD50-EDB6333628D5@gmail.com> Message-ID: Date: Sat, 27 Feb 2021 20:38:42 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] Deprecate debug_zval_dump? From: rowan.collins@gmail.com (Rowan Tommins) On 27/02/2021 19:29, tyson andre wrote: > - Checking the difference between two runs is useful in a bug report - if counts increase or decrease after calling a function > that isn't supposed to modify reference counts, this makes it an obvious indicator for reference counting bugs that can be submitted > or requested on issue trackers such as bugs.php.net That does sound a reasonable use case. My instinct was that those kind of users would be likely to use PHPDBG, or some C-level debugging method, but if this is common, it would be a reason to keep it in some form. > - Dynamic values (e.g. db results) generally aren't constant values, with some exceptions. That sounds like a bit of a tautology to me: of course dynamic values aren't constant. My reasoning was less about that specific case, and more about internal optimisations in general causing the output to change in hard-to-understand ways. Are we confident that after fixing that, another change won't make the output hard to interpret once again? > This also seems like it's being proposed out of a desire to have fewer print functions Actually, it was motivated by this documentation bug and many like it: https://bugs.php.net/bug.php?id=80804 The manual page still gives the incorrect advice to force a pass-by-reference when calling it, which hasn't been possible in any supported version of PHP for over 5 years. I'm working on a rewrite of that manual page, but it's honestly quite hard to explain what the refcount *does* tell you. If it stays, it should probably be labelled more clearly as something most users will never need or understand. Regards, -- Rowan Tommins [IMSoP]