mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way
This commit is contained in:
parent
b57703825b
commit
1c25b8dd53
72 changed files with 211 additions and 223 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue