summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_extension.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-09 15:21:29 +0000
committerWez Furlong <wez@php.net>2004-05-09 15:21:29 +0000
commitf8518cc83a85d818295bee41fbefa3cff735a886 (patch)
tree554484d52700a595b4690dce3ab22c9dee6c274c /ext/com_dotnet/com_extension.c
parent6f8233897eee10da21f7eb6122fed06a425a55bd (diff)
downloadphp-git-f8518cc83a85d818295bee41fbefa3cff735a886.tar.gz
Implement com_get_active_object() and a helper object for working with
persistent COM objects. (That's the last of the stuff I want to sneak in before 5.0 is released).
Diffstat (limited to 'ext/com_dotnet/com_extension.c')
-rw-r--r--ext/com_dotnet/com_extension.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c
index 10763aebec..5148451460 100644
--- a/ext/com_dotnet/com_extension.c
+++ b/ext/com_dotnet/com_extension.c
@@ -70,6 +70,7 @@ function_entry com_dotnet_functions[] = {
PHP_FE(com_print_typeinfo, NULL)
PHP_FE(com_message_pump, NULL)
PHP_FE(com_load_typelib, NULL)
+ PHP_FE(com_get_active_object, NULL)
{ NULL, NULL, NULL }
};
@@ -187,7 +188,8 @@ PHP_MINIT_FUNCTION(com_dotnet)
ZEND_INIT_MODULE_GLOBALS(com_dotnet, php_com_dotnet_init_globals, NULL);
REGISTER_INI_ENTRIES();
- php_com_wrapper_minit(INIT_FUNC_ARGS_PASSTHRU);
+ php_com_wrapper_minit(INIT_FUNC_ARGS_PASSTHRU);
+ php_com_persist_minit(INIT_FUNC_ARGS_PASSTHRU);
INIT_CLASS_ENTRY(ce, "com_exception", NULL);
php_com_exception_class_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default(), NULL TSRMLS_CC);
@@ -282,6 +284,7 @@ PHP_MINIT_FUNCTION(com_dotnet)
COM_CONST(DISP_E_DIVBYZERO);
COM_CONST(DISP_E_OVERFLOW);
COM_CONST(DISP_E_BADINDEX);
+ COM_CONST(MK_E_UNAVAILABLE);
return SUCCESS;
}