From:             elvir at innvue dot com
Operating system: Windows Server 2003
PHP version:      5.2.1
PHP Bug Type:     COM related
Bug description:  Pass Struct type to COM object from PHP

Description:
------------
hello,
I have a COM object created in c++. One of methods accept a struct as a
parameter. I have to call this method from PHP script.


Reproduce code:
---------------
object accepted:
typedef [uuid(5A0CB3A7-798A-42ff-B864-F8D90B55DB7C)] struct mystruct 
{
        LPSTR var1;
        LPSTR var2;
        LPSTR var3;
        LPSTR var4;
} mystruct

$newCom = new COM("classname.methodname") or die (" COM exeption");
   
   if(method_exists ($newCom, "ResetS"))
    // this retun true






Expected result:
----------------
what i want is:
call my method with the following param from php:

$newCom->mymethod(mystruct sructPHP, GUID sku);

Please can you help me?

Actual result:
--------------
I tryed to create an object in PHP and call method i get the following
error:
'com_exception' with message 'Error [0x80028019] Old format or invalid
type library.

-- 
Edit bug report at http://bugs.php.net/?id=40581&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40581&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40581&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40581&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40581&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40581&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40581&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40581&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40581&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40581&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40581&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40581&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40581&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40581&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40581&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40581&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40581&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40581&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40581&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40581&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40581&r=mysqlcfg

Reply via email to