mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Added generic COM wrapper for PHP objects.
This commit is contained in:
parent
3b97fe3657
commit
fc964e88d3
8 changed files with 1234 additions and 12 deletions
|
@ -31,6 +31,12 @@ PHPAPI int php_COM_get_le_comval();
|
|||
PHPAPI int php_COM_set_property_handler(zend_property_reference *property_reference, pval *value);
|
||||
PHPAPI pval php_COM_get_property_handler(zend_property_reference *property_reference);
|
||||
PHPAPI void php_COM_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference);
|
||||
PHPAPI zval *php_COM_object_from_dispatch(IDispatch *disp, zval *val TSRMLS_DC);
|
||||
PHPAPI int php_COM_load_typelib(ITypeLib *TypeLib, int mode TSRMLS_DC);
|
||||
|
||||
/* dispatch.c */
|
||||
PHPAPI IDispatch *php_COM_export_object(zval *val TSRMLS_DC);
|
||||
int php_COM_dispatch_init(int module_number TSRMLS_DC);
|
||||
|
||||
zend_module_entry COM_module_entry;
|
||||
zend_class_entry COM_class_entry;
|
||||
|
@ -43,6 +49,18 @@ END_EXTERN_C()
|
|||
|
||||
#define phpext_com_ptr &COM_module_entry
|
||||
|
||||
ZEND_BEGIN_MODULE_GLOBALS(com)
|
||||
int nothing;
|
||||
ZEND_END_MODULE_GLOBALS(com)
|
||||
|
||||
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(com);
|
||||
|
||||
#ifdef ZTS
|
||||
#define COMG(v) TSRMG(com_globals_id, zend_com_globals *, v)
|
||||
#else
|
||||
#define COMG(v) (com_globals.v)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define phpext_com_ptr NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue