]> granicus.if.org Git - php/commitdiff
Register according to the type specified by the module.
authorWez Furlong <wez@php.net>
Tue, 18 May 2004 15:26:13 +0000 (15:26 +0000)
committerWez Furlong <wez@php.net>
Tue, 18 May 2004 15:26:13 +0000 (15:26 +0000)
(Helps to fix dl() bug)

Zend/zend_API.c

index 347e6ee2d35fbc4beae3e0b90abfce1b88272598..1c0198eeeae0daa788972add521975e243aeb84a 100644 (file)
@@ -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;