PHP 4.0 Bug #5432: Apache server variables do not get registered

From: Date: Fri, 07 Jul 2000 10:45:20 +0000
Subject: PHP 4.0 Bug #5432: Apache server variables do not get registered
Groups: php.dev 
Request: Send a blank email to php-dev+get-23690@lists.php.net to get a copy of this message
From: jeroen@darius.demon.nl Operating system: Windows 2000 PHP version: 4.0 Latest CVS (07/07/2000) PHP Bug Type: Other Bug description: Apache server variables do not get registered The sapi_apache_register_server_variables function in sapi/apache/mod_php4.c does not add the apache server variables (like SERVER_NAME, SERVER_ADMIN, SERVER_PORT, REQUEST_METHOD). The following patch fixes this, but I'm not sure if this is what we really want, because now also COMSPEC, PATH, etc are also present. diff -u ./mod_php4.c ..\..\..\php4-200007060045\sapi\apache/mod_php4.c --- ./mod_php4.c Thu Jul 06 10:24:56 2000 +++ ..\..\..\php4-200007060045\sapi\apache/mod_php4.c Wed Jul 05 18:45:14 2000 @@ -255,7 +255,7 @@ } else { val = empty_string; } - php_register_variable(elts[i].key, val, track_vars_array ELS_CC PLS_CC); + php_register_variable(elts[i].key, val, NULL ELS_CC PLS_CC); } /* insert special variables */ Best regards, Jeroen Janssen

« previous php.dev (#23690) next »