|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76596 phpdbg does not support display_errors=stderr
Submitted: 2018-07-09 02:16 UTC Modified: 2019-01-30 17:31 UTC
From: kevin dot abel dot 0 at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: phpdbg
PHP Version: 7.1.19 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kevin dot abel dot 0 at gmail dot com
New email:
PHP Version: OS:


 [2018-07-09 02:16 UTC] kevin dot abel dot 0 at gmail dot com
phpdbg should have the same capabilities as the php cli, however the display_errors=stderr ini setting does not work.

Test script:
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-11 12:01 UTC]
While this may work, in some cases, it doesn't make any sense to redirect errors in a debugger.
 [2019-01-11 12:01 UTC]
-Status: Open +Status: Wont fix
 [2019-01-11 12:37 UTC]
It may make sense when running `phpdbg -rr`, though.
 [2019-01-30 17:31 UTC]
-Status: Wont fix +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2019-01-30 17:31 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 08:01:29 2023 UTC