diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index e2eb5aef282..ec5271c908c 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -714,7 +714,7 @@ static zend_object* helper_new(zend_class_entry *ce) return &helper->std; } -int php_com_persist_minit(INIT_FUNC_ARGS) +void php_com_persist_minit(INIT_FUNC_ARGS) { memcpy(&helper_handlers, &std_object_handlers, sizeof(helper_handlers)); helper_handlers.free_obj = helper_free_storage; @@ -725,6 +725,4 @@ int php_com_persist_minit(INIT_FUNC_ARGS) le_istream = zend_register_list_destructors_ex(istream_dtor, NULL, "com_dotnet_istream_wrapper", module_number); - - return SUCCESS; } diff --git a/ext/com_dotnet/php_com_dotnet_internal.h b/ext/com_dotnet/php_com_dotnet_internal.h index 30f9175051c..7c05165d1d5 100644 --- a/ext/com_dotnet/php_com_dotnet_internal.h +++ b/ext/com_dotnet/php_com_dotnet_internal.h @@ -107,7 +107,7 @@ PHP_COM_DOTNET_API IDispatch *php_com_wrapper_export_as_sink(zval *val, GUID *si PHP_COM_DOTNET_API IDispatch *php_com_wrapper_export(zval *val); /* com_persist.c */ -int php_com_persist_minit(INIT_FUNC_ARGS); +void php_com_persist_minit(INIT_FUNC_ARGS); /* com_variant.c */ PHP_METHOD(variant, __construct);