php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39658 COM Error: Call to undefined method
Submitted: 2006-11-28 09:48 UTC Modified: 2006-11-28 09:57 UTC
From: yuri at php dot ru Assigned:
Status: Not a bug Package: COM related
PHP Version: 5.2.0 OS: Windows 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yuri at php dot ru
New email:
PHP Version: OS:

 

 [2006-11-28 09:48 UTC] 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()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-28 09:51 UTC] yuri at php dot ru
Sorry, my mistake
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC