diff options
| author | Sascha Schumann <sas@php.net> | 2002-11-07 11:56:02 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2002-11-07 11:56:02 +0000 |
| commit | 8d25447f309f21337ef7b289f7fe56c3278b3c4d (patch) | |
| tree | 628d23ea8910be60e4f1cb723c8cdd7fa27fa43c /sapi/thttpd/thttpd.c | |
| parent | 6442b86bfa4c290e9443ee275f174beedf0d69cb (diff) | |
| download | php-git-8d25447f309f21337ef7b289f7fe56c3278b3c4d.tar.gz | |
let this source file compile with php 4.2.x
Diffstat (limited to 'sapi/thttpd/thttpd.c')
| -rw-r--r-- | sapi/thttpd/thttpd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index ae8e47d12a..a29217defc 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -371,7 +371,12 @@ static zend_module_entry php_thttpd_module = { static int php_thttpd_startup(sapi_module_struct *sapi_module) { +#if PHP_API >= 20020918 if (php_module_startup(sapi_module, &php_thttpd_module, 1) == FAILURE) { +#else + if (php_module_startup(sapi_module) == FAILURE + || zend_startup_module(&php_thttpd_module) == FAILURE) { +#endif return FAILURE; } return SUCCESS; |
