sas Thu Nov 7 06:56:02 2002 EDT Modified files: /php4/sapi/thttpd thttpd.c Log: let this source file compile with php 4.2.x Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.75 php4/sapi/thttpd/thttpd.c:1.76 --- php4/sapi/thttpd/thttpd.c:1.75 Wed Oct 30 14:09:49 2002 +++ php4/sapi/thttpd/thttpd.c Thu Nov 7 06:56:02 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: thttpd.c,v 1.75 2002/10/30 19:09:49 sas Exp $ */ +/* $Id: thttpd.c,v 1.76 2002/11/07 11:56:02 sas Exp $ */ #include "php.h" #include "SAPI.h" @@ -371,7 +371,12 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php