summaryrefslogtreecommitdiff
path: root/sapi/thttpd/thttpd.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-11-26 05:15:55 +0000
committerSascha Schumann <sas@php.net>2002-11-26 05:15:55 +0000
commit09f463ddae79c53a065d28da61a33fda96669f84 (patch)
tree6a15768f41099cf790428c6fb999956610cabe31 /sapi/thttpd/thttpd.c
parentf0b6f5450ca8888f79a4fb2ab77b628b3c49120f (diff)
downloadphp-git-09f463ddae79c53a065d28da61a33fda96669f84.tar.gz
Add sapi_get_fd() and implement it for the Apache/thttpd SAPIs.
Diffstat (limited to 'sapi/thttpd/thttpd.c')
-rw-r--r--sapi/thttpd/thttpd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index 4f196973ca..96ba377aec 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -382,6 +382,12 @@ static int php_thttpd_startup(sapi_module_struct *sapi_module)
return SUCCESS;
}
+static int sapi_thttpd_get_fd(int *nfd TSRMLS_DC)
+{
+ if (nfd) *nfd = TG(hc)->conn_fd;
+ return 0;
+}
+
static sapi_module_struct thttpd_sapi_module = {
"thttpd",
"thttpd",
@@ -411,7 +417,11 @@ static sapi_module_struct thttpd_sapi_module = {
NULL, /* Block interruptions */
NULL, /* Unblock interruptions */
- STANDARD_SAPI_MODULE_PROPERTIES
+ NULL,
+ NULL,
+ NULL,
+ 0,
+ sapi_thttpd_get_fd
};
static void thttpd_module_main(int show_source TSRMLS_DC)