Bug #14885 Updated: PHP Variables is not supportted
| From: | derick@php.net | Date: | Sat, 25 May 2002 00:32:41 +0000 |
| Subject: | Bug #14885 Updated: PHP Variables is not supportted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8477@lists.php.net to get a copy of this message | ||
ID: 14885
Updated by: derick@php.net
Reported By: r99t@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: iPlanet related
Operating System: Solaris 7
PHP Version: 4.0.5
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-01-06 05:18:36] r99t@hotmail.com
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:/
------------------------------------------------------------------------
[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