Bug #76596 [Wfx]: phpdbg does not support display_errors=stderr

From: Date: Fri, 11 Jan 2019 12:37:13 +0000
Subject: Bug #76596 [Wfx]: phpdbg does not support display_errors=stderr
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218906@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76596&edit=1 ID: 76596 Updated by: cmb@php.net Reported by: kevin dot abel dot 0 at gmail dot com Summary: phpdbg does not support display_errors=stderr Status: Wont fix Type: Bug Package: phpdbg PHP Version: 7.1.19 Block user comment: N Private report: N New Comment: It may make sense when running phpdbg -rr, though. Previous Comments: ------------------------------------------------------------------------ [2019-01-11 12:01:24] krakjoe@php.net While this may work, in some cases, it doesn't make any sense to redirect errors in a debugger. ------------------------------------------------------------------------ [2018-07-09 02:16:29] kevin dot abel dot 0 at gmail dot com Description: ------------ phpdbg should have the same capabilities as the php cli, however the display_errors=stderr ini setting does not work. Test script: --------------- --fatal.php-- <?php class FatalTest {} eval('class FatalTest {}'); $ phpdbg -ddisplay_errors=stderr -qrr fatal.php 2>/dev/null $ php -ddisplay_errors=stderr fatal.php 2>/dev/null Expected result: ---------------- Nothing output to the terminal Actual result: -------------- Fatal error and stack trace are shown after the phpdbg command on the terminal stdout. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76596&edit=1

« previous php.bugs (#218906) next »