[Bug 8924] values returned by getenv() are not persistent!

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 19 12:55:53 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=8924





--- Comment #5 from jvlad <dmda at yandex.ru>  2007-11-19 12:55:53 ---
install php5.2.5 from php.net site into c:\program files\php5 directory.

create c:\program files\php5\1.sh script >>>>>>>>

#!/bin/sh

GATEWAY_INTERFACE="CGI/1.1"
REQUEST_METHOD="GET"
REDIRECT_STATUS="200"
REDIRECT_QUERY_STRING="SESSID=394058944529300001"
REDIRECT_URL="/file:/C:/Program Files/php5/1.php"
PATH_INFO="/file:/C:/Program Files/php5/1.php"
REQUEST_URI="/file:/C:/Program Files/php5/1.php?SESSID=394058944529300001"
SERVER_SOFTWARE="ASERVER/1.0.0.1000"
SERVER_NAME="localhost"
SERVER_PORT="8082"
SERVER_PROTOCOL="HTTP/1.1"
QUERY_STRING="SESSID=394058944529300001"
SCRIPT_FILENAME="C:/Program Files/php5/php-cgi.exe"
SCRIPT_NAME="/php/php-cgi.exe"
PATH_TRANSLATED="C:\\Program Files\\php5\\1.php"
DOCUMENT_ROOT="C:\\Program Files\\php5"
SERVER_ADDR="127.0.0.1"
REMOTE_ADDR="127.0.0.1"
REMOTE_PORT="3006"
HTTP_ACCEPT="image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/xaml+xml,
application/vnd.ms-xpsdocument, application/x-ms-xbap,
application/x-ms-application, application/vnd.ms-excel, application/msword,
*/*"
HTTP_ACCEPT_ENCODING="gzip, deflate"
HTTP_ACCEPT_LANGUAGE="en-us"
HTTP_HOST="localhost:8082"
HTTP_CONNECTION="Keep-Alive"
HTTP_USER_AGENT="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"


export GATEWAY_INTERFACE REQUEST_METHOD REDIRECT_STATUS \
  REDIRECT_QUERY_STRING=SESSID REDIRECT_URL \
  SERVER_SOFTWARE SERVER_NAME SERVER_PORT SERVER_PROTOCOL \
  QUERY_STRING=SESSID SCRIPT_FILENAME SCRIPT_NAME \
  PATH_TRANSLATED PATH_INFO REQUEST_URI DOCUMENT_ROOT \
  SERVER_ADDR REMOTE_ADDR REMOTE_PORT HTTP_ACCEPT \
  HTTP_ACCEPT_ENCODING HTTP_ACCEPT_LANGUAGE \
  HTTP_HOST HTTP_CONNECTION HTTP_USER_AGENT 

./php-cgi.exe

<<<<<<<<<<<<< script end


create C:\Program Files\php5\1.php script>>>>>>>>
<?php
  echo "hello world";
?>
<<<<<<<<<<<< script end

run:

./1.sh

expected result:
STATUS: 200 OK
X-Powered-By: PHP-5.2.5
Content-type: text/html

hello world


actual result:
STATUS: 404 NOT FOUND
X-Powered-By: PHP-5.2.5
Content-type: text/html

No input file specified.


===================================
it's matter of how many variables and their length. At some certain amount of
environment stuff, it's re-allocted and cause the problem.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list