Mantis - Quercus
Viewing Issue Advanced Details
1105 minor always 05-12-06 21:39 05-15-06 19:24
koreth  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.0.20  
0001105: Need a way to set $_SERVER[] elements from per-host configuration
Our code depends on a bunch of config values which we set using SetEnv in Apache. In Apache/PHP we can access those values using the $_SERVER array, to which there are references all over the place in our code. I don't see a way to populate $_SERVER in Quercus. If we could do that from resin-web.xml or quercus.ini that'd be super.

Notes
(0001137)
ferg   
05-15-06 19:24   
php/0826

The configuration is in the <init> section as <server-env>, e.g.

<servlet servlet-name="php"
              servlet-class="com.caucho.quercus.servlet.QuercusServlet">
  <init>
     <servlet-env foo="bar"/>
  </init>
</servlet>

<?php

echo '$_SERVER["foo"] '; var_dump($_SERVER["foo"]);

?>