php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-11 12:01 UTC] krakjoe@php.net
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] krakjoe@php.net
-Status: Open +Status: Wont fix
 [2019-01-11 12:37 UTC] cmb@php.net
It may make sense when running `phpdbg -rr`, though.
 [2019-01-30 17:31 UTC] krakjoe@php.net
-Status: Wont fix +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2019-01-30 17:31 UTC] krakjoe@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 10:01:29 2024 UTC