if (!module->module_started && module->module_startup_func) {
EG(current_module) = module;
- if (module->module_startup_func(Z_TYPE_P(module), module->module_number TSRMLS_CC)==FAILURE) {
+ if (module->module_startup_func(module->type, module->module_number TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_ERROR,"Unable to start %s module", module->name);
EG(current_module) = NULL;
return FAILURE;
DL_UNLOAD(handle);
RETURN_FALSE;
}
- Z_TYPE_P(module_entry) = type;
+ module_entry->type = type;
module_entry->module_number = zend_next_free_module();
zend_register_module_ex(module_entry TSRMLS_CC);