diff options
| author | Zeev Suraski <zeev@php.net> | 2000-02-10 19:41:21 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-02-10 19:41:21 +0000 |
| commit | 6d0ab6166cc1a4eca90211cdfa0ca144704ad677 (patch) | |
| tree | ee2b2758afeb47bf3a9648c0067d9b747b91e5b2 /sapi/apache/mod_php4.c | |
| parent | 9709f7ec73557e0a1a85ad3fbc4c73806de50620 (diff) | |
| download | php-git-6d0ab6166cc1a4eca90211cdfa0ca144704ad677.tar.gz | |
SAPIfication, Episode VI: Return of the SAPI
Remove mostly all references to APACHE and CGI_BINARY from the code.
- Apache include files are no longer included by any PHP code, except for the Apache SAPI module.
- No server specific code is in any of the base PHP code.
Still left to be done:
- Eliminate any references to APACHE from the few remaining modules.
- Move request_info.c's logic to SAPI
- Modify the regex function names, and globals, so that we can always
include them, without having to fear any interference with Apache;
Always use the bundled regex library
Diffstat (limited to 'sapi/apache/mod_php4.c')
| -rw-r--r-- | sapi/apache/mod_php4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 86bab41fa2..5d23a64ab6 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -22,6 +22,7 @@ #include "zend.h" #include "php.h" #include "php_variables.h" +#include "SAPI.h" #include "httpd.h" #include "http_config.h" @@ -299,6 +300,7 @@ static int php_apache_sapi_activate(SLS_D) block_alarms(); register_cleanup(((request_rec *) SG(server_context))->pool, NULL, php_request_shutdown, php_request_shutdown_for_exec); unblock_alarms(); + return SUCCESS; } @@ -310,9 +312,7 @@ static struct stat *php_apache_get_stat(SLS_D) static char *php_apache_getenv(char *name, int name_len SLS_DC) { - char *value; - - return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name)); + return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name); } |
