summaryrefslogtreecommitdiff
path: root/ext/rpc/dotnet
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpc/dotnet')
-rw-r--r--ext/rpc/dotnet/dotnet.cpp7
-rw-r--r--ext/rpc/dotnet/php_dotnet.h4
2 files changed, 6 insertions, 5 deletions
diff --git a/ext/rpc/dotnet/dotnet.cpp b/ext/rpc/dotnet/dotnet.cpp
index b6d84a0839..0407150e99 100644
--- a/ext/rpc/dotnet/dotnet.cpp
+++ b/ext/rpc/dotnet/dotnet.cpp
@@ -184,14 +184,16 @@ void php_DOTNET_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_propert
}
}
-void php_register_DOTNET_class()
+void php_register_DOTNET_class(void)
{
+ TSRMLS_FETCH();
+
INIT_OVERLOADED_CLASS_ENTRY(dotnet_class_entry, "DOTNET", NULL,
php_DOTNET_call_function_handler,
php_COM_get_property_handler,
php_COM_set_property_handler);
- zend_register_internal_class(&dotnet_class_entry);
+ zend_register_internal_class(&dotnet_class_entry TSRMLS_CC);
}
function_entry DOTNET_functions[] = {
@@ -207,7 +209,6 @@ static PHP_MINFO_FUNCTION(DOTNET)
PHP_MINIT_FUNCTION(DOTNET)
{
-
HRESULT hr;
CoInitialize(0);
hr = dotnet_init();
diff --git a/ext/rpc/dotnet/php_dotnet.h b/ext/rpc/dotnet/php_dotnet.h
index 570f4bdc7f..b56af145e2 100644
--- a/ext/rpc/dotnet/php_dotnet.h
+++ b/ext/rpc/dotnet/php_dotnet.h
@@ -3,8 +3,8 @@
#if WIN32|WINNT
-extern PHP_MINIT_FUNCTION(DOTNET);
-extern PHP_MSHUTDOWN_FUNCTION(DOTNET);
+PHP_MINIT_FUNCTION(DOTNET);
+PHP_MSHUTDOWN_FUNCTION(DOTNET);
PHP_FUNCTION(DOTNET_load);
extern zend_module_entry DOTNET_module_entry;