php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #11968 Com Objects
Submitted: 2001-07-09 06:08 UTC Modified: 2001-07-22 06:13 UTC
From: gfletcher at marketchoice dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.5 OS: Windows
Private report: No CVE-ID: None
 [2001-07-09 06:08 UTC] gfletcher at marketchoice dot 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???

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-09 07:20 UTC] 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-22 06:13 UTC] phanto@php.net
documentation is almost up to date and should cover most issues.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 26 13:01:28 2024 UTC