php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2802 com_propget does not support passing arguments
Submitted: 1999-11-23 16:40 UTC Modified: 2002-10-01 20:40 UTC
From: tohare at epnet dot com Assigned:
Status: Not a bug Package: Parser error
PHP Version: 4.0b3 OS: Windows NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tohare at epnet dot com
New email:
PHP Version: OS:

 

 [1999-11-23 16:40 UTC] tohare at epnet dot com
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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 20:40 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 09:01:25 2019 UTC