summaryrefslogtreecommitdiff
path: root/sapi/phttpd
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
committerZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
commitbd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f (patch)
treeff521b5242f3800f3495220bfdf51f9cf35bbe20 /sapi/phttpd
parent348f6c609c148c2c1f17669dad521fe04cd50a2a (diff)
downloadphp-git-bd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f.tar.gz
Many patches. I hope I remember them all:
- Make sapi_module available to external modules (PHPAPI) - Make the php.ini path reported in phpinfo() always point to real full path of the php.ini file - Optimized the ISAPI module not to read unnecessary server variables and read necessary variables at most once.
Diffstat (limited to 'sapi/phttpd')
-rw-r--r--sapi/phttpd/phttpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/phttpd/phttpd.c b/sapi/phttpd/phttpd.c
index a7abe61088..7ff5316491 100644
--- a/sapi/phttpd/phttpd.c
+++ b/sapi/phttpd/phttpd.c
@@ -163,7 +163,7 @@ php_phttpd_sapi_read_post(char *buf, uint count_bytes SLS_DC)
return 0;
}
-static sapi_module_struct sapi_module = {
+static sapi_module_struct phttpd_sapi_module = {
"phttpd",
"PHTTPD",
@@ -284,8 +284,8 @@ int php_doit(PHLS_D SLS_DC)
int pm_init(const char **argv)
{
tsrm_startup(1, 1, 0, NULL);
- sapi_startup(&sapi_module);
- sapi_module.startup(&sapi_module);
+ sapi_startup(&phttpd_sapi_module);
+ phttpd_sapi_module.startup(&phttpd_sapi_module);
ph_globals_id = ts_allocate_id(sizeof(phttpd_globals_struct), NULL, NULL);