Bug #14885 Updated: PHP Variables is not supportted
ID: 14885
User updated by: r99t@hotmail.com
Reported By: r99t@hotmail.com
Status: Open
Bug Type: iPlanet related
Operating System: Solaris 7
PHP Version: 4.0.5
New Comment:
I tested with iPlanet 6.0 and PHP4.0.4pl1.
I also did it with iPlanet 4.1 before, but the result was the same
one.
After i compile and install the program, i executed file, test.php
including the following line.
<?
phpinfo();
?>
"PHP Variables", like this.. only two lines...
PHP_SELF /test.php
HTTP_SERVER_VARS["QUERY_STRING"]
The problem is NOT here.
The Variables are not work in the real php code.
echo $HTTP_SERVER_VARS["SERVER_NAME"];
Although $HTTP_SERVER_VARS["REMOTE_ADDR"] is work well,
Why isn't work $HTTP_SERVER_VARS["SERVER_NAME"],
$HTTP_SERVER_VARS["REMOTE_PORT"].. etc ?
In Linux Box with apache, it works very well.
The following is the sample.
PHP Variables : value (null values show that it does not work)
-------------------phpvar.php--------------------
PHP_SELF: /phpvar.php
DOCUMENT_ROOT:
force-response-1_0:
HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, */*
HTTP_CONNECTION:
HTTP_HOST:
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0;
T312461)
PATH:
REMOTE_ADDR: 211.236.72.46
REMOTE_PORT:
SCRIPT_FILENAME:
SERVER_ADDR:
SERVER_ADMIN:
SERVER_NAME:
SERVER_PORT:
SERVER_SIGNATURE:
SERVER_SOFTWARE:
GATEWAY_INTERFACE:
SERVER_PROTOCOL:
REQUEST_METHOD: GET
QUERY_STRING:
REQUEST_URI:
SCRIPT_NAME: /phpvar.php
PATH_TRANSLATED:
PHP_SELF: /phpvar.php
argv: Array
argc: 0
PWD:
HOSTNAME:
LESSOPEN:
USER:
LS_COLORS:
MACHTYPE:
MAIL /var/mail/root
INPUTRC
BASH_ENV:
LANG: ko
LOGNAME: root
SHLVL:
SHELL: /sbin/sh
USERNAME
HOSTTYPE:
OSTYPE:
HISTSIZE:
TERM: vt100
HOME: /
PATH:
/usr/iplanet/servers/bin/https/bin:/opt/SUNWspro/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ucb:/etc:.:/usr/local/bin:/usr/sbin:/
Previous Comments:
------------------------------------------------------------------------
[2002-01-06 05:13:08] r99t@hotmail.com
I tested with iPlanet 6.0 and PHP4.0.4pl1.
I also was did it with iPlanet 4.1 before, but the result was the same
one.
After i compile and install the program, i opened file, test.php
including the following line.
<?
phpinfo();
?>
"PHP Variables", like this.. only two lines...
PHP_SELF /test.php
HTTP_SERVER_VARS["QUERY_STRING"]
The problem is NOT here.
The Variables are not work in the real php code.
echo $HTTP_SERVER_VARS["SERVER_NAME"];
Although $HTTP_SERVER_VARS["REMOTE_ADDR"] is work well,
Why isn't work $HTTP_SERVER_VARS["SERVER_NAME"],
$HTTP_SERVER_VARS["REMOTE_PORT"].. etc ?
In Linux Box with apache, it works very well.
The following is the sample.
PHP Variables : value (null values show that it does not work)
-------------------phpvar.php--------------------
PHP_SELF: /phpvar.php
DOCUMENT_ROOT:
force-response-1_0:
HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, */*
HTTP_CONNECTION:
HTTP_HOST:
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0;
T312461)
PATH:
REMOTE_ADDR: 211.236.72.46
REMOTE_PORT:
SCRIPT_FILENAME:
SERVER_ADDR:
SERVER_ADMIN:
SERVER_NAME:
SERVER_PORT:
SERVER_SIGNATURE:
SERVER_SOFTWARE:
GATEWAY_INTERFACE:
SERVER_PROTOCOL:
REQUEST_METHOD: GET
QUERY_STRING:
REQUEST_URI:
SCRIPT_NAME: /xxx.php
PATH_TRANSLATED:
PHP_SELF: /phpvar.php
argv: Array
argc: 0
PWD:
HOSTNAME:
LESSOPEN:
USER:
LS_COLORS:
MACHTYPE:
MAIL /var/mail/root
INPUTRC
BASH_ENV:
LANG: ko
LOGNAME: root
SHLVL:
SHELL: /sbin/sh
USERNAME
HOSTTYPE:
OSTYPE:
HISTSIZE:
TERM: vt100
HOME: /
PATH:
/usr/iplanet/servers/bin/https/bin:/opt/SUNWspro/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ucb:/etc:.:/usr/local/bin:/usr/sbin:/
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14885&edit=1
Thread (2 messages)