From:             anoopk at poornam dot com
Operating system: Linux - Redhat-9
PHP version:      4.3.11
PHP Bug Type:     Servlet related
Bug description:  Problem with $_SERVER array

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 bug report at http://bugs.php.net/?id=33384&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33384&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33384&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33384&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33384&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33384&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33384&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33384&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33384&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33384&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33384&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33384&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33384&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33384&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33384&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33384&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33384&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33384&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33384&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33384&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33384&r=mysqlcfg

Reply via email to