Bug #76555 [Asn->Nab]: Unexpected default of phpdbg.eol ini setting

From: Date: Mon, 15 Nov 2021 16:50:32 +0000
Subject: Bug #76555 [Asn->Nab]: Unexpected default of phpdbg.eol ini setting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237773@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76555&edit=1 ID: 76555 Updated by: cmb@php.net Reported by: cmb@php.net Summary: Unexpected default of phpdbg.eol ini setting -Status: Assigned +Status: Not a bug Type: Bug Package: phpdbg Operating System: * PHP Version: 7.2.7 -Assigned To: ab +Assigned To: cmb Block user comment: N Private report: N New Comment: 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] <https://www.php.net/manual/en/phpdbg.configuration.php> [2] <https://github.com/php/php-src/pull/7147> Previous Comments: ------------------------------------------------------------------------ [2018-06-30 11:20:41] cmb@php.net Description: ------------ 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 "1"? 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] <https://github.com/php/php-src/blob/PHP-7.2.7/sapi/phpdbg/phpdbg.c#L74> [2] <https://github.com/php/php-src/blob/PHP-7.2.7/sapi/phpdbg/phpdbg_eol.h#L34> [3] <https://github.com/php/php-src/blob/PHP-7.2.7/sapi/phpdbg/phpdbg_eol.h#L32> [4] <http://git.php.net/?p=php-src.git;a=commit;h=e011f0ca60a7d4d062b559dbbf7cfabef8f7a75b> Test script: --------------- <?php var_dump(ini_get('phpdbg.eol')); var_dump(ini_set('phpdbg.eol', "2")); var_dump(ini_get('phpdbg.eol')); var_dump(ini_set('phpdbg.eol', 'CR')); var_dump(ini_get('phpdbg.eol')); Actual result: -------------- string(1) "2" bool(false) string(1) "2" string(1) "2" string(2) "CR" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76555&edit=1

« previous php.bugs (#237773) next »