#28179 [WFx->Fbk]: [COM] passing classes as a parameter

From: Date: Thu, 29 Apr 2004 14:12:21 +0000
Subject: #28179 [WFx->Fbk]: [COM] passing classes as a parameter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59001@lists.php.net to get a copy of this message
ID: 28179 Updated by: wez@php.net Reported By: arnout at argeweb dot nl -Status: Wont fix +Status: Feedback Bug Type: COM related Operating System: Windows NT 5.2 / Windows 2003 PHP Version: PHP Version 5.0.0RC2 New Comment: The test materials you supplied worked just fine. Previous Comments: ------------------------------------------------------------------------ [2004-04-29 15:14:47] arnout at argeweb dot nl The problem's still there. Fatal error: Uncaught exception 'com_exception' with message 'Source: PHPTest Description: Can not call friend function on object which is not an instance of defining class' in C:\Program Files\Apache Group\Apache2\htdocs\phptest.php:32 Stack trace: #0 {main} thrown in C:\Program Files\Apache Group\Apache2\htdocs\phptest.php on line 32 ------------------------------------------------------------------------ [2004-04-28 17:12:42] wez@php.net Maybe its about time I read the version field of this report. This problem won't be fixed in PHP 4, but already works just fine in PHP 5. ------------------------------------------------------------------------ [2004-04-28 13:30:39] arnout at argeweb dot nl I received the DLL and the error's still there. http://www.argeweb.nl/php/PHPTest.zip This file contains the DLL, the sourcecodes, an example and a readme. No IDL but I think this might be even better. ------------------------------------------------------------------------ [2004-04-28 11:11:39] wez@php.net The IDL describes what the method looks like to other COM applications; I need it to see what their object expects and help deduce what might be going wrong. ------------------------------------------------------------------------ [2004-04-28 09:39:46] arnout at argeweb dot nl I've talked to them. They said an IDL wouldn't do much good because IDL doesn't contain friend functions, only publics. They offered to create a sober "Hello world" DLL in VB which simulates the case. I'll test again when I get it. If the error occurs again I'll send you the source code + compiled version. Is that of use to you? ------------------------------------------------------------------------ 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 http://bugs.php.net/28179 -- Edit this bug report at http://bugs.php.net/?id=28179&edit=1

« previous php.bugs (#59001) next »