From: Andi Gutmans Date: Thu, 26 Oct 2000 23:50:17 +0000 (+0000) Subject: - Fix new -m on Windows X-Git-Tag: php-4.0.4RC3~510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2946f87f00806f9324763549bbde35d8ffdd51b4;p=php - Fix new -m on Windows --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 984ac63c19..761e1b142e 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -30,7 +30,7 @@ /* these variables are true statics/globals, and have to be mutex'ed on every access */ static int module_count=0; -HashTable module_registry; +ZEND_API HashTable module_registry; /* this function doesn't check for too many parameters */ ZEND_API int zend_get_parameters(int ht, int param_count, ...) diff --git a/Zend/zend_modules.h b/Zend/zend_modules.h index a2906b42ab..0dd01306c8 100644 --- a/Zend/zend_modules.h +++ b/Zend/zend_modules.h @@ -75,7 +75,7 @@ struct _zend_module_entry { }; -extern HashTable module_registry; +extern ZEND_API HashTable module_registry; void module_destructor(zend_module_entry *module); int module_registry_cleanup(zend_module_entry *module); diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 5002803aee..7038f2dead 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -22,6 +22,7 @@ #include "php.h" #include "php_globals.h" #include "php_variables.h" +#include "modules.h" #include "SAPI.h" @@ -88,6 +89,7 @@ extern int ap_php_optind; static int _print_module_info ( zend_module_entry *module, void *arg ) { php_printf("%s\n", module->name); + return 0; } static int sapi_cgibin_ub_write(const char *str, uint str_length)