On 27/02/2021 21:17, Nikita Popov wrote:
On Sat, Feb 27, 2021 at 10:12 PM Rowan Tommins <rowan.coll...@gmail.com <mailto:rowan.coll...@gmail.com>> 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]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to