Bug #48425 [Opn->Dup]: Can not call static methods from .net DLL

From: Date: Sat, 08 Feb 2020 11:22:52 +0000
Subject: Bug #48425 [Opn->Dup]: Can not call static methods from .net DLL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225448@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48425&edit=1

 ID:                 48425
 Updated by:         cmb@php.net
 Reported by:        halflife at cableone dot net
 Summary:            Can not call static methods from .net DLL
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            COM related
 Operating System:   Windows Server 2003
 PHP Version:        5.2.9
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Duplicate of bug #50473.


Previous Comments:
------------------------------------------------------------------------
[2009-05-29 04:57:00] halflife at cableone dot net

Description:
------------
I can call any public methods in a public class from my dll no 
problem, but calling any methods that are set as static, results in 
the error

Fatal error: Call to undefined method com::DoMD5() in 
C:\wamp\www\xxx\netphp.php on line 5





Reproduce code:
---------------
Source to dll class <a href=http://www.dlgnetworks.com/HashPotato.cs

PHP Code calling it

$DLGtb = new COM("DLG.Crypto.HashPotato");
echo $DLGtb->DoMD5("test");


Expected result:
----------------
Should return the MD5 of the string

Actual result:
--------------
Fatal error: Call to undefined method com::DoMD5()


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=48425&edit=1


Thread (2 messages)

« previous php.bugs (#225448) next »