summaryrefslogtreecommitdiff
path: root/ext/dotnet/dotnet.cpp
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-30 01:56:43 +0000
committerZeev Suraski <zeev@php.net>2001-07-30 01:56:43 +0000
commit1c25b8dd532961ecb09932b182457ca0adcf8b57 (patch)
tree2996afec821096218156f1d914301ad589edf897 /ext/dotnet/dotnet.cpp
parentb57703825be0ff40d34ee257ce14c453c4bffb98 (diff)
downloadphp-git-1c25b8dd532961ecb09932b182457ca0adcf8b57.tar.gz
Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way
Diffstat (limited to 'ext/dotnet/dotnet.cpp')
-rw-r--r--ext/dotnet/dotnet.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/dotnet/dotnet.cpp b/ext/dotnet/dotnet.cpp
index b6d84a0839..0407150e99 100644
--- a/ext/dotnet/dotnet.cpp
+++ b/ext/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();