Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113333 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87034 invoked from network); 28 Feb 2021 22:08:09 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Feb 2021 22:08:09 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AAA261804C0 for ; Sun, 28 Feb 2021 13:57:59 -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-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 ; Sun, 28 Feb 2021 13:57:59 -0800 (PST) Received: by mail-wr1-f51.google.com with SMTP id j2so1232948wrx.9 for ; Sun, 28 Feb 2021 13:57:59 -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=PnJxxk4N8+Wm4lXWqazDlUWobqjUPRS4UHFWFm58Fvs=; b=W4aUztwTTxXAKTpcUAOMP5Z+c2B4d5hdkKNJsLhtF9xi2jkq3VW34aPcj4Wh3guwwe vJ2lZC7J+3nTnitOjJXijIjrm7MNTBnomhZC/KsnnNCjPMGjV9K1qkCKHo01v7zMVz22 9zrBwmXmg9LvffIsLMTGGjN7XFA4UpN22aeVxtkU/gG5pjujXu8R4cr/2jL4I1cjTUFY PX7SPIatW7f/vST9fyevTJrii2m+387rNapXjBQCAeFtQZvBwZ8WPVCns5E8CDVU2SQI zxsbPs+wCHUs9hGofXZCWhJ2LmUL77vDAvOKmHCm1EOQU5w29tJZsspvzKct+ZBFYuSw x+uQ== 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=PnJxxk4N8+Wm4lXWqazDlUWobqjUPRS4UHFWFm58Fvs=; b=RjjC/gg43qlwheH41Gnkoye7J4GmOUQlwimUILzB5NguDmrt0FpgFxPaHpbKSGUZXf gh6d8f42RN2/EU9YY0oyxJ3BKySEiQnaUuxtAGKqepoMy1HLSEDWXp5jJ0Cucjq0zHhp TrAONzFkL9u9v986enKS1v+LCnY48cjAtlMR3/5mfIaz1ds6rzVOdnlQZ25aKwJngcy/ sqrmLShJkbOiVAg+w9sL0IMf0hUdPn6fACeiAmznaegSr4ebry1pdW9AW9I6lcz9igTh RfRNNMhGZu6ie033J36Ag7swi3u7kQmXAtOoGahHfjmir5TbH5Dgu/dYlVyqcmPyJdxc qvwA== X-Gm-Message-State: AOAM533SDJcnQd+pYgsWHU2aWbmz/X5HY/CQuSosi24gZ4AE4uzWi2QJ 2u9GLbK07kHssZsUcVCkj4z3yvj1osk= X-Google-Smtp-Source: ABdhPJxSvU7DEyfi/ASSw8YSje9jrvChFYy5AppqRyw4Fu/3EnX5KB9Y8UFFB9wc7wBx76dEQQ5x2w== X-Received: by 2002:a5d:6446:: with SMTP id d6mr13538575wrw.328.1614549476428; Sun, 28 Feb 2021 13:57:56 -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 h19sm19005774wmq.47.2021.02.28.13.57.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Feb 2021 13:57:55 -0800 (PST) To: PHP internals References: <62243527-96EC-4234-AD50-EDB6333628D5@gmail.com> <9bb410ab-0306-5180-82d3-7ee28d5fcd60@gmail.com> Message-ID: <2642ba28-92f0-8b7a-9432-4e0ce019b7a1@gmail.com> Date: Sun, 28 Feb 2021 21:57:54 +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 21:17, Nikita Popov wrote: > On Sat, Feb 27, 2021 at 10:12 PM Rowan Tommins > > wrote: > > On 27/02/2021 20:05, Nikita Popov wrote: > > If we additionally change it to explicitly print reference > wrappers, I > > believe that debug_zval_dump() will produce a faithful > representation. > > > Is that even possible without either accepting parameters by > reference, > or taking a variable name like the XDebug version does? > > > The root value cannot be a reference, but nested values can be. Ah, I hadn't thought of that. With a representation of the reference zval, passing in [&$foo] would probably resolve the current feeling that the function is "broken". Meanwhile, I've attempted to rewrite the manual page to reflect reality since 7.0 (which is now the oldest version the manual covers). If anyone more familiar with the internals has time to point out if I've made any blunders, I would appreciate it: https://github.com/php/doc-en/pull/466 Regards, -- Rowan Tommins [IMSoP]