summaryrefslogtreecommitdiff
path: root/sapi/nsapi/nsapi.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2002-09-18 21:57:42 +0000
committerZeev Suraski <zeev@php.net>2002-09-18 21:57:42 +0000
commit76312b4508b43ed2cebd97b749e9e90181e55073 (patch)
treede244c23b518eff0488eb3a965b21e2522ee0454 /sapi/nsapi/nsapi.c
parent70f17979fb7ac0c7379a48bc86d26a009cfb56ed (diff)
downloadphp-git-76312b4508b43ed2cebd97b749e9e90181e55073.tar.gz
another startup initialization fix - only ISAPI and CGI SAPI's tested,
minor compile buglets might occur in other SAPIs, but should be trivial to fix...
Diffstat (limited to 'sapi/nsapi/nsapi.c')
-rw-r--r--sapi/nsapi/nsapi.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 2a392ac434..522df34479 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -342,11 +342,20 @@ nsapi_log_message(char *message)
}
+static int php_nsapi_startup(sapi_module_struct *sapi_module)
+{
+ if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
+ return FAILURE;
+ }
+ return SUCCESS;
+}
+
+
static sapi_module_struct nsapi_sapi_module = {
"nsapi", /* name */
"NSAPI", /* pretty name */
- php_module_startup, /* startup */
+ php_nsapi_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
NULL, /* activate */