|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76555 Unexpected default of phpdbg.eol ini setting
Submitted: 2018-06-30 11:20 UTC Modified: 2021-11-15 16:50 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Assigned: cmb (profile)
Status: Not a bug Package: phpdbg
PHP Version: 7.2.7 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:
New email:
PHP Version: OS:


 [2018-06-30 11:20 UTC]
Apparently, the ini setting phpdbg.eol defaults to "2"[1] which
corresponds to PHPDBG_EOL_CR[2] which appears to be very uncommon
nowadays.  Is this perhaps a related to the out-commented
PHPDBG_EOL_LFCR[3], and the default is actually supposed to be

Even more confusing, setting phpdbg.eol to a numeric value is
apparently not allowed, see test script.  I would either expect
that this is allowed, or that the setting would default to "CR"
instead of "2".

Anatol, since you introduced this ini setting[4], could you please
have a look at this?

[1] <>
[2] <>
[3] <>
[4] <;a=commit;h=e011f0ca60a7d4d062b559dbbf7cfabef8f7a75b>

Test script:

var_dump(ini_set('phpdbg.eol', "2"));
var_dump(ini_set('phpdbg.eol', 'CR'));

Actual result:
string(1) "2"
string(1) "2"
string(1) "2"
string(2) "CR"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-30 11:21 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: ab
 [2021-11-15 16:50 UTC]
-Status: Assigned +Status: Not a bug -Assigned To: ab +Assigned To: cmb
 [2021-11-15 16:50 UTC]
Given that the behavior is properly documented[1], and that the
setting is removed as of PHP 8.1.0[2], it makes no sense to keep
this ticket open.

[1] <>
[2] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 13:01:28 2024 UTC