From b949bfe651f4df585e02333a4a09a52742d41a84 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 18 May 2004 15:26:13 +0000 Subject: [PATCH] Register according to the type specified by the module. (Helps to fix dl() bug) --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 347e6ee2d3..1c0198eeea 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1187,7 +1187,7 @@ ZEND_API int zend_register_module_ex(zend_module_entry *module TSRMLS_DC) if (!module->module_started && module->module_startup_func) { EG(current_module) = module; - if (module->module_startup_func(MODULE_PERSISTENT, module->module_number TSRMLS_CC)==FAILURE) { + if (module->module_startup_func(Z_TYPE_P(module), module->module_number TSRMLS_CC)==FAILURE) { zend_error(E_CORE_ERROR,"Unable to start %s module", module->name); EG(current_module) = NULL; return FAILURE; -- 2.50.1