Doc #50305 [Asn->Csd]: DOTNET Warning

From: Date: Thu, 18 Jun 2020 08:44:10 +0000
Subject: Doc #50305 [Asn->Csd]: DOTNET Warning
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17659@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50305&edit=1 ID: 50305 Updated by: phpdocbot@php.net Reported by: noon at ms8 dot url dot com dot tw Summary: DOTNET Warning -Status: Assigned +Status: Closed Type: Documentation Problem Package: COM related Operating System: Windows Vista PHP Version: 5.3.1 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=doc/en.git;a=commit;h=001013aeb83751e8bbbf91d45070d3b751c4dfa0 Log: Fix #50305: DOTNET Warning Previous Comments: ------------------------------------------------------------------------ [2020-06-16 16:52:52] cmb@php.net Doesn't make sense to wait for a magic fix – changing to doc issue. ------------------------------------------------------------------------ [2020-02-07 10:48:13] cmb@php.net That COM object is supposed to implement IDispatch, but apparently it does not; converting it to a PHP Variant (like in the attached patch accept-LPUNKNOWN) would not solve the problem (while it makes the OP's test script work, it still leaves a practically unusable Controls object, because it only postpones the problem). ------------------------------------------------------------------------ [2013-10-18 02:41:42] eric at pby dot com I'm not proficient enough in C to even compile PHP. Until this bug is fixed in a stable release, is it possible to define a PHP class that mirrors the COM class and cast the object into that class so that I can access its functions and properties? ------------------------------------------------------------------------ [2013-02-20 14:39:18] user at kkdf2 dot sakura dot ne dot jp I've posted a patch. I'm not sure whether it works well or not. ------------------------------------------------------------------------ [2011-01-14 08:40:11] kalle@php.net This means that the variant conversion (as the error says) failed, 0xD is the variant type value of the object being converted. 0xD evaluates to 13 which is VT_UNKNOWN, an object that implements the IUnknown interface. I however doubt theres anyone who will look at fixing this anytime soon as COM/dotnet needs an active maintainer ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50305 -- Edit this bug report at https://bugs.php.net/bug.php?id=50305&edit=1

« previous php.doc.bugs (#17659) next »