Bug #76555 [NEW]: Unexpected default of phpdbg.eol ini setting

From: Date: Sat, 30 Jun 2018 11:20:43 +0000
Subject: Bug #76555 [NEW]: Unexpected default of phpdbg.eol ini setting
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216046@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: 7.2.7 Package: phpdbg Bug Type: Bug Bug description:Unexpected default of phpdbg.eol ini setting 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 bug report at https://bugs.php.net/bug.php?id=76555&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76555&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76555&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76555&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76555&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76555&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76555&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76555&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76555&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76555&r=support Expected behavior: https://bugs.php.net/fix.php?id=76555&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76555&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76555&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76555&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76555&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76555&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76555&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76555&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76555&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76555&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76555&r=mysqlcfg

« previous php.bugs (#216046) next »