]> granicus.if.org Git - php/commitdiff
let this source file compile with php 4.2.x
authorSascha Schumann <sas@php.net>
Thu, 7 Nov 2002 11:56:02 +0000 (11:56 +0000)
committerSascha Schumann <sas@php.net>
Thu, 7 Nov 2002 11:56:02 +0000 (11:56 +0000)
sapi/thttpd/thttpd.c

index ae8e47d12a83c55baa5ea5ed3a3e0c9cda37602e..a29217defc313e5a8a1f3be409ddb6bf52a16687 100644 (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;