#28179 [Opn->Csd]: [COM] passing classes as a parameter

From: Date: Mon, 03 May 2004 11:49:16 +0000
Subject: #28179 [Opn->Csd]: [COM] passing classes as a parameter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59161@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: Open +Status: Closed Bug Type: COM related Operating System: Windows NT 5.2 / Windows 2003 PHP Version: PHP Version 5.0.0RC2 Previous Comments: ------------------------------------------------------------------------ [2004-05-03 12:57:14] arnout at argeweb dot nl I've got it running now too. It only works if you import the DLL like 'event classes' instead of 'components'. The real DLL by the way didn't work until I removed it all from the COM+ manager and run regsvr32.exe on it. ------------------------------------------------------------------------ [2004-04-30 11:45:36] wez@php.net What user account is Apache running under? Does it make a difference if you run it as a different user? ------------------------------------------------------------------------ [2004-04-29 16:45:39] arnout at argeweb dot nl I'm using Apache 2 and run 5.0.0RC2 as a module. Maybe that makes some difference? $Administration = new COM("PHPTest.Administration") or die("huh?"); $Customer = new COM("PHPTest.Customer") or die("what?"); echo $Customer->Connect( $Administration ); // Huge error ------------------------------------------------------------------------ [2004-04-29 16:12:20] wez@php.net The test materials you supplied worked just fine. ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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 (#59161) next »