Bug #78535 [NEW]: auto_detect_line_endings value not parsed as bool

From: Date: Fri, 13 Sep 2019 21:42:51 +0000
Subject: Bug #78535 [NEW]: auto_detect_line_endings value not parsed as bool
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222740@lists.php.net to get a copy of this message
From: bugreportuser+php dot bugs at gmail dot com Operating system: any PHP version: 7.2.22 Package: *Configuration Issues Bug Type: Bug Bug description:auto_detect_line_endings value not parsed as bool Description: ------------ Setting "auto_detect_line_endings" to "on" with "ini_set" doesn't enable it, because the value's parsed as a long. This bug has a pull request. Test script: --------------- <?php ini_set("auto_detect_line_endings", "on"); var_dump(ini_get("auto_detect_line_endings")); $filePath = __DIR__ . DIRECTORY_SEPARATOR . "auto_detect_line_endings_2.txt"; file_put_contents($filePath, "fooBar1\rfooBar2\rfooBar3"); $stdin = fopen($filePath, "r"); var_dump(fgets($stdin)); Expected result: ---------------- string(2) "on" string(8) "fooBar1" Actual result: -------------- string(2) "on" string(23) "fooBar1fooBar2fooBar3" -- Edit bug report at https://bugs.php.net/bug.php?id=78535&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78535&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78535&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78535&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78535&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78535&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78535&r=support Expected behavior: https://bugs.php.net/fix.php?id=78535&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78535&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78535&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78535&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78535&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78535&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78535&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78535&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78535&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78535&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78535&r=mysqlcfg

« previous php.bugs (#222740) next »