let this source file compile with php 4.2.x

This commit is contained in:
Sascha Schumann 2002-11-07 11:56:02 +00:00
parent 6442b86bfa
commit 8d25447f30

View File

@ -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;