From: Regis dot Derimay at iQvolution dot com
Operating system: Windows XP Professional
PHP version: 4.3.4
PHP Bug Type: COM related
Bug description: Problem calling COM interface methods
Description:
------------
I call the following in PHP:
$x = new VARIANT(0.0, VT_R8 | VT_BYREF);
$y = new VARIANT(0.0, VT_R8 | VT_BYREF);
$z = new VARIANT(0.0, VT_R8 | VT_BYREF);
com_invoke($sphereIf, "getPosition", $x, $y, $z, false);
The getPosition function is defined by:
interface IiQSphereObjIf : IDispatch
{
[id(1), helpstring("method getPosition")] HRESULT getPosition([out]
double* x, [out] double* y, [out] double* z, [in] VARIANT_BOOL
globalTrafo, [out, retval] int* result);
};
I get the following error code
Warning: com_invoke(): Invoke() failed: Type mismatch. Argument: 2 in
...php
It seems to be a problem with the COM module when using functions with
paramaters by reference (like x, y and z here).
When using normal parameters everything is working well.
Expected result:
----------------
Having x y and z filed with the position.
Actual result:
--------------
I get the following error code
Warning: com_invoke(): Invoke() failed: Type mismatch. Argument: 2 in
...php
--
Edit bug report at http://bugs.php.net/?id=26632&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26632&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26632&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26632&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26632&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26632&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26632&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26632&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26632&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26632&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26632&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26632&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26632&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26632&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26632&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26632&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26632&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26632&r=float