summaryrefslogtreecommitdiff
path: root/sapi/tux/php_tux.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/tux/php_tux.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/tux/php_tux.c')
-rw-r--r--sapi/tux/php_tux.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sapi/tux/php_tux.c b/sapi/tux/php_tux.c
index 4f0b6e17db..0c0384de25 100644
--- a/sapi/tux/php_tux.c
+++ b/sapi/tux/php_tux.c
@@ -252,11 +252,21 @@ static void sapi_tux_register_variables(zval *track_vars_array TSRMLS_DC)
#endif
}
+
+static int php_tux_startup(sapi_module_struct *sapi_module)
+{
+ if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
+ return FAILURE;
+ } else {
+ return SUCCESS;
+ }
+}
+
static sapi_module_struct tux_sapi_module = {
"tux",
"tux",
- php_module_startup,
+ php_tux_startup,
php_module_shutdown_wrapper,
NULL, /* activate */