Bug #75794 [NEW]: getenv() crashes on Windows 7.2.1 when second parameter is false

From: Date: Wed, 10 Jan 2018 14:34:49 +0000
Subject: Bug #75794 [NEW]: getenv() crashes on Windows 7.2.1 when second parameter is false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213458@lists.php.net to get a copy of this message
From: jon at senyahnoj dot org dot uk Operating system: Windows PHP version: 7.2.1 Package: Reproducible crash Bug Type: Bug Bug description:getenv() crashes on Windows 7.2.1 when second parameter is false Description: ------------ Using PHP 7.2.1 (64 bit NTS) on (Windows Server 2012/Windows 7) + IIS FastCGI. The fast CGI process crashes when PHP calls getenv() with a second parameter (local_only) of false. It's fine if the second parameter is true. It does not crash on the previous version 7.2.0. PHP 7.2.1 on linux also fine. We are wondering if this is a windows platform-specific problem. Could this be related to Bug #75574 which was released in 7.2.1? Test script: --------------- <?php getenv('HTTP_ACCEPT_LANGUAGE', false); -- Edit bug report at https://bugs.php.net/bug.php?id=75794&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75794&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75794&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75794&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75794&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75794&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75794&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75794&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75794&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75794&r=support Expected behavior: https://bugs.php.net/fix.php?id=75794&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75794&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75794&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75794&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75794&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75794&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75794&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75794&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75794&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75794&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75794&r=mysqlcfg

« previous php.bugs (#213458) next »