On 20 January 2021 23:19:21 GMT, Sara Golemon <poll...@php.net> wrote: >IMO print_r/var_dump should be kept out of this discussion. Those are >human >readable outputs for human consumption. var_export() is about a >machine >readable output for recreating initial state within a runtime. The >requirements presented are wholly different.
In that case, why are we spending so much time discussing how to make it look nicer for human consumption? Of the changes proposed, I think only the leading backslash on class names actually makes a difference to machine readability, and that could probably just be changed and documented as fixing the existing functionality. What are the requirements of var_dump that *couldn't* be merged with var_export? Regards, -- Rowan Tommins [IMSoP]