diff options
author | Zeev Suraski <zeev@php.net> | 1999-05-02 19:16:21 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-05-02 19:16:21 +0000 |
commit | bc004fb06273eea752eddebc7e8cb31f3db635ad (patch) | |
tree | 1eb2326b6c64e4e7d2755cc4cab76e41f588bb28 /mod_php3.c | |
parent | fcaf734f94c8d8e8aa887c9da9457bc427eb0770 (diff) | |
download | php-git-bc004fb06273eea752eddebc7e8cb31f3db635ad.tar.gz |
Apache compile fix
Diffstat (limited to 'mod_php3.c')
-rw-r--r-- | mod_php3.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/mod_php3.c b/mod_php3.c index 7adfa2c8a2..a102fe8f5f 100644 --- a/mod_php3.c +++ b/mod_php3.c @@ -54,6 +54,16 @@ #define PHP_INI_PERDIR (1<<1) #define PHP_INI_SYSTEM (1<<2) +/* These are taken out of main.h + * they must be updated if main.h changes! + */ + +int apache_php3_module_main(request_rec * r, int fd, int display_source_mode); +int php_module_startup(sapi_module_struct *sf); +void php_module_shutdown(); +void php_module_shutdown_for_exec(); +int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals); + #include "util_script.h" #include "php_version.h" @@ -87,10 +97,6 @@ int saved_umask; php_apache_info_struct php_apache_info; /* active config */ -int apache_php3_module_main(request_rec * r, int fd, int display_source_mode); -int php_module_startup(sapi_module_struct *sf); -void php_module_shutdown(); -void php_module_shutdown_for_exec(); void php3_save_umask() @@ -113,7 +119,12 @@ static int zend_apache_ub_write(const char *str, uint str_length) sapi_module_struct sapi_module = { - zend_apache_ub_write + "PHP Language", /* name */ + + php_module_startup, /* startup */ + php_module_shutdown_wrapper, /* shutdown */ + + zend_apache_ub_write, /* unbuffered write */ }; |