#39658 [Csd->Bgs]: COM Error: Call to undefined method
| From: | tony2001@php.net | Date: | Tue, 28 Nov 2006 09:57:03 +0000 |
| Subject: | #39658 [Csd->Bgs]: COM Error: Call to undefined method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105532@lists.php.net to get a copy of this message | ||
ID: 39658
Updated by: tony2001@php.net
Reported By: yuri at php dot ru
-Status: Closed
+Status: Bogus
Bug Type: COM related
Operating System: Windows 2003
PHP Version: 5.2.0
Previous Comments:
------------------------------------------------------------------------
[2006-11-28 09:51:20] yuri at php dot ru
Sorry, my mistake
------------------------------------------------------------------------
[2006-11-28 09:48:03] yuri at php dot ru
Description:
------------
PHP5.2 + Apache 2 + Microsoft DRM SDK installed.
Error with using DRM SDK COM methods.
Fatal error: Call to undefined method
Reproduce code:
---------------
$headerObj = new COM("Wmrmobjs.WMRMHeader") or die("Unable to
instanciate WMRMHeader");
//object was created successfully
com_print_typeinfo($headerObj);
//object methods are shown successfully
/*
class IWMRMHeader2 { /* GUID={44F7DFDA-C7D1-4C7F-83D2-73BA3EAED9FA} */
...
/* DISPID=8 */
function Sign(
/* VT_BSTR [8] [in] */ $bstrPrivKey
)
{
/* method Sign */
}
...
}
*/
//try to use method Sign():
$headObj->Sign($contentserverpubkey);
//Fatal error: Call to undefined method stdClass::Sign()
Actual result:
--------------
Fatal error: Call to undefined method stdClass::Sign()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39658&edit=1