From: Sascha Schumann Date: Thu, 7 Nov 2002 11:56:02 +0000 (+0000) Subject: let this source file compile with php 4.2.x X-Git-Tag: php-4.3.0RC1~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d25447f309f21337ef7b289f7fe56c3278b3c4d;p=php let this source file compile with php 4.2.x --- 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;