Bug #75794 [Opn->Fbk]: getenv() crashes on Windows 7.2.1 when second parameter is false
| From: | ab@php.net | Date: | Wed, 10 Jan 2018 15:06:23 +0000 |
| Subject: | Bug #75794 [Opn->Fbk]: getenv() crashes on Windows 7.2.1 when second parameter is false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213459@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75794&edit=1
ID: 75794
Updated by: ab@php.net
Reported by: jon at senyahnoj dot org dot uk
Summary: getenv() crashes on Windows 7.2.1 when second
parameter is false
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 7.2.1
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2018-01-10 14:34:47] jon at senyahnoj dot org dot uk
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 this bug report at https://bugs.php.net/bug.php?id=75794&edit=1