[php-src] Issue #7922: `print_r` should not produce a fatal error
| From: | mvorisek | Date: | Mon, 10 Jan 2022 14:10:13 +0000 |
| Subject: | [php-src] Issue #7922: `print_r` should not produce a fatal error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238934@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7922
Author: mvorisek
### Description
print_r (and any function calling __debugInfo()) should not produce a
fatal error, it should generate an \Error exception instead
demo https://3v4l.org/YTfSl