ID: 33384 User updated by: anoopk at poornam dot com Reported By: anoopk at poornam dot com Status: Bogus Bug Type: Servlet related Operating System: Linux - Redhat-9 PHP Version: 4.3.11 New Comment:
So the php scripts which uses _SERVER variables(such as HTTP_REFERER, DOCUMENT_ROOT etc) won't work with PHP Servlet sapi. It will be very helpful if you can suggest any altenative for this. Previous Comments: ------------------------------------------------------------------------ [2005-06-17 19:14:56] [EMAIL PROTECTED] Of course there are no variables since the servlet SAPI doesn't register any. ------------------------------------------------------------------------ [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