#33384 [Opn->Bgs]: Problem with $_SERVER array
| From: | sniper@php.net | Date: | Fri, 17 Jun 2005 17:14:58 +0000 |
| Subject: | #33384 [Opn->Bgs]: Problem with $_SERVER array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80552@lists.php.net to get a copy of this message | ||
ID: 33384
Updated by: sniper@php.net
Reported By: anoopk at poornam dot com
-Status: Open
+Status: Bogus
Bug Type: Servlet related
Operating System: Linux - Redhat-9
PHP Version: 4.3.11
New Comment:
Of course there are no variables since the servlet SAPI doesn't
register any.
Previous Comments:
------------------------------------------------------------------------
[2005-06-17 16:30:05] anoopk at poornam dot com
Description:
------------
I'm using standalone Resin as the servlet container. When using PHP
Servlet for php support in Resin, the global array $_SERVER seems to be
empty.
I saw a similar bug in the bug system.
http://bugs.php.net/bug.php?id=16915
Since I'm not able to re-open the bug, I'm posting a new one.
I'm having the same issue with php-4.3.11. I tried the
$HTTP_SERVER_VARS as suggested in the previous bug, but didn't
succeed.
configure line is as follows :
'./configure' '--enable-cli' '--enable-sockets'
'--enable-pcntl'
'--enable-mime-magic' '--with-mysql' '--with-ldap'
'--with-java=/usr/java/jdk1.5.0_03/' '--with-tsrm-pthreads'
'--with-servlet'
Reproduce code:
---------------
<?
print_r($_SERVER);
print_r($HTTP_SERVER_VARS);
?>
Actual result:
--------------
Array
(
[argv] => Array
(
)
[argc] => 0
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33384&edit=1