#45280 [Opn]: Reflection of instantiated COM classes causes PHP to crash.

From: Date: Mon, 16 Jun 2008 13:37:01 +0000
Subject: #45280 [Opn]: Reflection of instantiated COM classes causes PHP to crash.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125803@lists.php.net to get a copy of this message
ID: 45280 User updated by: RQuadling at GMail dot com Reported By: RQuadling at GMail dot com Status: Open Bug Type: Reflection related Operating System: Windows XP SP2 PHP Version: 5.3CVS-2008-06-16 (snap) New Comment: I forgot to mention that the function com_print_typeinfo() does provide some of the information I'm expecting to be available via Reflection. Previous Comments: ------------------------------------------------------------------------ [2008-06-16 13:35:15] RQuadling at GMail dot com Description: ------------ Hi. I'm trying to use PHP to find out about the COM interface of Crystal Reports XI. I can use ... php -r "ReflectionClass::export('COM');" which shows the empty 'COM' class extending the 'variant' class. But if I try and use ... php -r "ReflectionObject::export(New COM('CrystalReports11.ObjectFactory.1'));" I get a crash and a request to send a report to Microsoft. Reproduce code: --------------- <?php $o_CR = New COM('CrystalReports11.ObjectFactory.1'); ReflectionObject::export($o_CR); Expected result: ---------------- A dump of the properties/methods provided by the Crystal Reports XI Object Factory. Actual result: -------------- A crash and a Dr. Watson crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45280&edit=1

« previous php.bugs (#125803) next »