http://bugs.winehq.org/show_bug.cgi?id=8924
--- Comment #1 from jvlad dmda@yandex.ru 2007-11-14 13:27:55 --- well, test case is below:
1. install php into c:\php 2. create a bat file with content below in c:\php:
@echo off set GATEWAY_INTERFACE=CGI/1.1 set REQUEST_METHOD=GET set REDIRECT_STATUS=200 set PATH_TRANSLATED=C:\php\1.php C:\php\php-cgi.exe
3. create php file C:\php\1.php with content below
<?php phpinfo();
4. run bat file
Under windows it will run php file and output phpinfo results. Under wine it will not work at all waiting for input as if no CGI environment was set. You may also try to run php with shell script: #!/bin/sh GATEWAY_INTERFACE="CGI/1.1" REQUEST_METHOD=GET REDIRECT_STATUS=200 PATH_TRANSLATED="C:\php\1.php" ./php-cgi.exe and results will be the same. It does not see the environment.
As I mentioned earilier, it will not work under Wine because evironment strings are allocated with not persistent addresses and changing one may change all the others.