http://bugs.winehq.org/show_bug.cgi?id=8924
--- Comment #3 from jvlad dmda@yandex.ru 2007-11-16 17:05:47 --- no, it's not a failed attempt, it's not an attempt, it's a code excerpt from official php sources and demonstrate how they work with getenv/setenv since early 2000 and once they rely on a non-documented behaviour of msvcrt library, I'd highly recommend you to check if Wine can follow.
comment#2 is a real-world testcase to demonstrate the problem with php win32 binaries. If you do not know what php is, please check www.php.net site.
Finally, no documents said that pointers returned with getenv() are non-persistent and once it happens that they are persistent under Win32 and there are applications relying on this behaviour, I see no reasons to consider this bug report as an invalid.
-jv