On 25/01/2021 14:40, tyson andre wrote:
I'm concerned PHP may indefinitely keep the default behavior of `array (`, `NULL`, etc. in var_export.
I agree that that's likely, but I don't find it concerning, unless "array()" is deprecated or "null" becomes case sensitive.
You have proposed no mechanism other than string escaping by which var_dump could or should be improved.
Indeed, because out of all the improvements proposed in this thread, that's the only one I consider to be anything more than picking a new colour for the bikeshed.
It is also the one which I suspect would have least impact if it was simply added to both var_dump() and var_export(), because the intersection of "relying on exact output" and "processing strings containing control characters" is probably a rather small one, precisely because the current output doesn't represent them well.
Regards, -- Rowan Tommins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php