/* 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, ...)
};
-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);
#include "php.h"
#include "php_globals.h"
#include "php_variables.h"
+#include "modules.h"
#include "SAPI.h"
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)