Bug #79051 [Ana->Csd]: putenv variables not accessible to dependent functions in Windows CLI
| From: | cmb@php.net | Date: | Tue, 31 Mar 2020 10:34:46 +0000 |
| Subject: | Bug #79051 [Ana->Csd]: putenv variables not accessible to dependent functions in Windows CLI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226363@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79051&edit=1
ID: 79051
Updated by: cmb@php.net
Reported by: danielklein at airpost dot net
Summary: putenv variables not accessible to dependent
functions in Windows CLI
-Status: Analyzed
+Status: Closed
Type: Bug
Package: PHP options/info functions
Operating System: Windows 10
PHP Version: 7.3.13
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
libcurl 7.69.1 has been released which fixes this issue, and will
be used for the PHP 7.3.17 and 7.4.5 Windows builds, so I'm
closing this ticket.
Previous Comments:
------------------------------------------------------------------------
[2020-02-13 09:25:25] cmb@php.net
Update: a patch which fixes this issue regarding libcurl has just
been landed[1]. It will take some time until this fix gets
releases and we can update to the new libcurl version.
[1] <https://github.com/curl/curl/commit/9dc350b60c1345aea548847de414c55468a4d123>
------------------------------------------------------------------------
[2020-01-10 16:15:05] cmb@php.net
Related To: Bug #61685
------------------------------------------------------------------------
[2020-01-02 15:04:21] cmb@php.net
Thanks for the further information! I just tried with a ZTS
build, and now I could reproduce. Apparently, I didn't test
a ZTS build before, even though I thought I did. Sorry.
Anyhow, the problem is actually the missing part of bug #66265 for
ZTS, which has never been addressed (the other ticket had been
closed inadvertently).
TL;DR: libcurl() currently calls getenv() to retrieve the
environment variable, but in ZTS builds it is only set with
SetEnvironmentVariable(), so is not available to libcurl.
I'm afraid, though, that we can't do anything here without
coordination with libraries using getenv() to retrieve environment
variables. I just wrote to the curl library mailing list[1];
let's see how that goes.
[1] <https://curl.haxx.se/mail/lib-2020-01/0006.html>
------------------------------------------------------------------------
[2020-01-02 12:10:42] danielklein at airpost dot net
This is what I've downloaded and installed today (in different directories):
- php-7.3.12-Win32-VC15-x64.zip
- php-7.3.13-Win32-VC15-x64.zip
- php-7.4.0-Win32-vc15-x64.zip
- php-7.4.1-Win32-vc15-x64.zip
------------------------------------------------------------------------
[2020-01-02 12:08:18] danielklein at airpost dot net
I've tried with 7.3.9-7.3.13, & 7.4.0-7.4.1 (fresh downloads and installations of PHP >=
7.3.12).
7.3.13 & 7.4.1 both with Xdebug disabled still have the same behaviour as I reported before.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79051
--
Edit this bug report at https://bugs.php.net/bug.php?id=79051&edit=1