[php-src] Issue #7896: Env vars with non-ASCII values are mangled when read from $_SERVER on Windows
| From: | Seldaek | Date: | Fri, 07 Jan 2022 12:58:08 +0000 |
| Subject: | [php-src] Issue #7896: Env vars with non-ASCII values are mangled when read from $_SERVER on Windows | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238854@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7896
Comment Author: Seldaek
@cmb69 it's been [brought to my
attention](https://github.com/composer/composer/issues/10434#issuecomment-1007382318) that calling
getenv() also still suffers from the same issue and mangles unicode values. Only
getenv('FOO') appears to work correctly.
So here's a working workaround: https://github.com/composer/composer/blob/d9619985dbabb58255fb27cf78fe702345d31793/bin/composer#L68-L76