#45855 [NEW]: COM-Problem with GET/SET, using same method name (but with different arg count)
[email protected] ("marcus dot kroschinsky at siemens dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: marcus dot kroschinsky at siemens dot com
Operating system: WinXP Prof. SP2
PHP version: 5.2.6
PHP Bug Type: COM related
Bug description: COM-Problem with GET/SET, using same method name (but with different arg count)
Description:
------------
The COM Application 'myApp' (some properitary inhouse product) throws
'com_exception' if a PHP5 script tries to execute a SET method of given
object. Other applications written in C/C++, Python and Excel VBS work
fine.
IDL of myApp:
[id(0x00000038), propget] VARIANT DocumentParameterValue(BSTR
parameterName);
[id(0x00000038), propput] void DocumentParameterValue(BSTR
parameterName, VARIANT rhs);
Reproduce code:
---------------
<?php
$obj = new COM("myApp.Document");
echo $obj->DocumentParameterValue('project'); // get (ok
!)
$obj->DocumentParameterValue('project', strval('ZONK')); // set
(fails !)
?>
Expected result:
----------------
Output value of parameter 'project' and set it to string 'ZONK'.
Actual result:
--------------
First 2 lines execute ok, but the third line fails with following error:
Fatal error: Uncaught exception 'com_exception' with message 'Error
[0x8002000e] Invalid number of parameters.'
--
Edit bug report at http://bugs.php.net/?id=45855&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45855&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45855&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45855&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45855&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45855&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45855&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45855&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45855&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45855&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45855&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45855&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45855&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45855&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45855&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45855&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45855&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45855&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45855&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45855&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45855&r=mysqlcfg