[php-src] Issue #8006: var_dump() function displays certain strings incorrectly

From: Date: Fri, 28 Jan 2022 22:32:52 +0000
Subject: [php-src] Issue #8006: var_dump() function displays certain strings incorrectly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239338@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8006 Comment Author: iluuu1994 @canajun2eh var_dump is used in CLI for debugging purposes as well. We could of course just escape special characters when you're in the browser. Since that's PHPs primary target it is somewhat surprising the output isn't escaped. That said, maybe consider using something more sophisticated like [Symfony's VarDumper component](https://symfony.com/doc/current/components/var_dumper.html). It'll escape the output for you and has coloring, collapsing, works better on deeply nested data structures, etc.

« previous php.bugs (#239338) next »