Bug #11968 Updated: Com Objects

From: Date: Sun, 22 Jul 2001 10:13:38 +0000
Subject: Bug #11968 Updated: Com Objects
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-60574@lists.php.net to get a copy of this message
ID: 11968 Updated by: phanto Reported By: gfletcher@marketchoice.com Old Status: Open Status: Closed Bug Type: Documentation problem Operating System: Windows PHP Version: 4.0.5 New Comment: documentation is almost up to date and should cover most issues. Previous Comments: ------------------------------------------------------------------------ [2001-07-09 07:20:27] jeroen@php.net Doc problem In the mean time, you'll need to read the source... unfortunately. There are proto-types in there and probably one-line 'documentation' for each function. Here is a grep -A2 proto COM.c: /* {{{ proto int com_load(string module_name [, string remote_host [, int codepage[, string typelib]]]) Loads a COM module */ PHP_FUNCTION(com_load) -- /* {{{ proto mixed com_invoke(int module, string handler_name [, mixed arg [, ...]]) Invokes a COM module */ PHP_FUNCTION(com_invoke) -- /* {{{ proto mixed com_invoke(int module) Releases a COM object */ PHP_FUNCTION(com_release) -- /* {{{ proto mixed com_addref(int module) Increases the reference counter on a COM object */ PHP_FUNCTION(com_addref) -- /* {{{ proto mixed com_propget(int module, string property_name) Gets properties from a COM module */ PHP_FUNCTION(com_propget) -- /* {{{ proto bool com_propput(int module, string property_name, mixed value) Puts the properties for a module */ PHP_FUNCTION(com_propput) -- /* {{{ proto bool com_load_typelib(string typelib_name[, int case_insensitiv]) */ PHP_FUNCTION(com_load_typelib) { -- /* {{{ proto bool com_isenum(com_module obj) Grabs an IEnumVariant */ PHP_FUNCTION(com_isenum) ------------------------------------------------------------------------ [2001-07-09 06:08:56] gfletcher@marketchoice.com I am a Win 32 user of PHP 4 and I am trying to call a com component, the PHP manual states that the following syntax work: com_load() com_invoke() com_propget() com_get() com_propput() com_propset() com_set() But they don't!!!! After doing some reasearch I have fould that the actual syntax for com_load() is COM('Component Name') and that com_invoke() is $VariableAssignedToComObject->Comproperty = 'Value'; What I need to know is the actuall syntax used for: com_propget() com_get() com_propput() com_propset() com_set() It doesn't seem to be documented anywhere, can you help??? ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=11968&edit=1

« previous php.dev (#60574) next »