Back to index

php5  5.3.10
Defines | Functions | Variables
php_com_dotnet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define phpext_com_dotnet_ptr   &com_dotnet_module_entry
#define COMG(v)   (com_dotnet_globals.v)

Functions

 PHP_MINIT_FUNCTION (com_dotnet)
 PHP_MSHUTDOWN_FUNCTION (com_dotnet)
 PHP_RINIT_FUNCTION (com_dotnet)
 PHP_RSHUTDOWN_FUNCTION (com_dotnet)
 PHP_MINFO_FUNCTION (com_dotnet)
 ZEND_DECLARE_MODULE_GLOBALS (com_dotnet)

Variables

zend_module_entry com_dotnet_module_entry
zend_bool allow_dcom
zend_bool autoreg_verbose
zend_bool autoreg_on
zend_bool autoreg_case_sensitive
void * dotnet_runtime_stuff
int code_page
zend_bool rshutdown_started

Define Documentation

#define COMG (   v)    (com_dotnet_globals.v)

Definition at line 50 of file php_com_dotnet.h.

Definition at line 25 of file php_com_dotnet.h.


Function Documentation

PHP_MINFO_FUNCTION ( com_dotnet  )

Definition at line 494 of file com_extension.c.

{
       php_info_print_table_start();

       php_info_print_table_header(2, "COM support", "enabled");
       php_info_print_table_header(2, "DCOM support", COMG(allow_dcom) ? "enabled" : "disabled");

#if HAVE_MSCOREE_H
       php_info_print_table_header(2, ".Net support", "enabled");
#else
       php_info_print_table_header(2, ".Net support", "not present in this build");
#endif

       php_info_print_table_end();

       DISPLAY_INI_ENTRIES();
}

Here is the call graph for this function:

PHP_MINIT_FUNCTION ( com_dotnet  )

Definition at line 345 of file com_extension.c.

{
       zend_class_entry ce, *tmp;

       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(TSRMLS_C), NULL TSRMLS_CC);
       php_com_exception_class_entry->ce_flags |= ZEND_ACC_FINAL;
/*     php_com_exception_class_entry->constructor->common.fn_flags |= ZEND_ACC_PROTECTED; */

       INIT_CLASS_ENTRY(ce, "com_safearray_proxy", NULL);
       php_com_saproxy_class_entry = zend_register_internal_class(&ce TSRMLS_CC);
       php_com_saproxy_class_entry->ce_flags |= ZEND_ACC_FINAL;
/*     php_com_saproxy_class_entry->constructor->common.fn_flags |= ZEND_ACC_PROTECTED; */
       php_com_saproxy_class_entry->get_iterator = php_com_saproxy_iter_get;
       
       INIT_CLASS_ENTRY(ce, "variant", NULL);
       ce.create_object = php_com_object_new;
       php_com_variant_class_entry = zend_register_internal_class(&ce TSRMLS_CC);
       php_com_variant_class_entry->get_iterator = php_com_iter_get;

       INIT_CLASS_ENTRY(ce, "com", NULL);
       ce.create_object = php_com_object_new;
       tmp = zend_register_internal_class_ex(&ce, php_com_variant_class_entry, "variant" TSRMLS_CC);
       tmp->get_iterator = php_com_iter_get;

       zend_ts_hash_init(&php_com_typelibraries, 0, NULL, php_com_typelibrary_dtor, 1);

#if HAVE_MSCOREE_H
       INIT_CLASS_ENTRY(ce, "dotnet", NULL);
       ce.create_object = php_com_object_new;
       tmp = zend_register_internal_class_ex(&ce, php_com_variant_class_entry, "variant" TSRMLS_CC);
       tmp->get_iterator = php_com_iter_get;
#endif

       REGISTER_INI_ENTRIES();

#define COM_CONST(x) REGISTER_LONG_CONSTANT(#x, x, CONST_CS|CONST_PERSISTENT)
       
       COM_CONST(CLSCTX_INPROC_SERVER);
       COM_CONST(CLSCTX_INPROC_HANDLER);
       COM_CONST(CLSCTX_LOCAL_SERVER);
       COM_CONST(CLSCTX_REMOTE_SERVER);
       COM_CONST(CLSCTX_SERVER);
       COM_CONST(CLSCTX_ALL);

#if 0
       COM_CONST(DISPATCH_METHOD);
       COM_CONST(DISPATCH_PROPERTYGET);
       COM_CONST(DISPATCH_PROPERTYPUT);
#endif

       COM_CONST(VT_NULL);
       COM_CONST(VT_EMPTY);
       COM_CONST(VT_UI1);
       COM_CONST(VT_I1);
       COM_CONST(VT_UI2);
       COM_CONST(VT_I2);
       COM_CONST(VT_UI4);
       COM_CONST(VT_I4);
       COM_CONST(VT_R4);
       COM_CONST(VT_R8);
       COM_CONST(VT_BOOL);
       COM_CONST(VT_ERROR);
       COM_CONST(VT_CY);
       COM_CONST(VT_DATE);
       COM_CONST(VT_BSTR);
       COM_CONST(VT_DECIMAL);
       COM_CONST(VT_UNKNOWN);
       COM_CONST(VT_DISPATCH);
       COM_CONST(VT_VARIANT);
       COM_CONST(VT_INT);
       COM_CONST(VT_UINT);
       COM_CONST(VT_ARRAY);
       COM_CONST(VT_BYREF);

       COM_CONST(CP_ACP);
       COM_CONST(CP_MACCP);
       COM_CONST(CP_OEMCP);
       COM_CONST(CP_UTF7);
       COM_CONST(CP_UTF8);
       COM_CONST(CP_SYMBOL);
       COM_CONST(CP_THREAD_ACP);

       COM_CONST(VARCMP_LT);
       COM_CONST(VARCMP_EQ);
       COM_CONST(VARCMP_GT);
       COM_CONST(VARCMP_NULL);

       COM_CONST(NORM_IGNORECASE);
       COM_CONST(NORM_IGNORENONSPACE);
       COM_CONST(NORM_IGNORESYMBOLS);
       COM_CONST(NORM_IGNOREWIDTH);
       COM_CONST(NORM_IGNOREKANATYPE);
#ifdef NORM_IGNOREKASHIDA
       COM_CONST(NORM_IGNOREKASHIDA);
#endif
       COM_CONST(DISP_E_DIVBYZERO);
       COM_CONST(DISP_E_OVERFLOW);
       COM_CONST(DISP_E_BADINDEX);
       COM_CONST(MK_E_UNAVAILABLE);

       return SUCCESS;
}

Here is the call graph for this function:

PHP_MSHUTDOWN_FUNCTION ( com_dotnet  )

Definition at line 455 of file com_extension.c.

Here is the call graph for this function:

PHP_RINIT_FUNCTION ( com_dotnet  )

Definition at line 471 of file com_extension.c.

{
       COMG(rshutdown_started) = 0;
       return SUCCESS;
}
PHP_RSHUTDOWN_FUNCTION ( com_dotnet  )

Definition at line 480 of file com_extension.c.

{
#if HAVE_MSCOREE_H
       if (COMG(dotnet_runtime_stuff)) {
              php_com_dotnet_rshutdown(TSRMLS_C);
       }
#endif
       COMG(rshutdown_started) = 1;
       return SUCCESS;
}

Here is the call graph for this function:

ZEND_DECLARE_MODULE_GLOBALS ( com_dotnet  )

Variable Documentation

Definition at line 38 of file php_com_dotnet.h.

Definition at line 41 of file php_com_dotnet.h.

Definition at line 40 of file php_com_dotnet.h.

Definition at line 39 of file php_com_dotnet.h.

Definition at line 43 of file php_com_dotnet.h.

zend_module_entry com_dotnet_module_entry

Definition at line 236 of file com_extension.c.

Definition at line 42 of file php_com_dotnet.h.

Definition at line 44 of file php_com_dotnet.h.