php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2907 com_propget does not support passing arguments
Submitted: 1999-12-03 12:51 UTC Modified: 2000-06-11 19:53 UTC
From: merv at negia dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: Windows NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: merv at negia dot net
New email:
PHP Version: OS:

 

 [1999-12-03 12:51 UTC] merv at negia dot net
Using the COM functionality in PHP 4.0 beta 3 on Windows NT with IIS, I
created a COM object and called a property that takes a parameter and PHP
returns an error:

<?php
$obj = new COM("MyProgid")
$ver = $obj->Version("HTML");
?>

Fatal error: version.() in D:\php_scripts\com.php on line 3

Here is the COM propert get IDL:

[id(0x00000001), propget, helpstring("property Version")]
BSTR Version([in, optional] VARIANT format);

I took a quick look at COM.c and noticed that propget implementation
does not appear to take arguments:

>From COM.c:

do_COM_propget(...) {
....
dispparams.cArgs = 0;
dispparams.cNamedArgs = 0;

hr = i_dispatch->lpVtbl->Invoke(i_dispatch, dispid,
&IID_NULL,LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYGET, &dispparams,
var_result, NULL,
0);
....
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-11 19:53 UTC] zeev at cvs dot php dot net
Support for passing arguments to COM propgets has been added in PHP 4.0.0
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 13:01:32 2025 UTC