|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-11 04:01 UTC] wez@php.net
[2005-01-13 00:58 UTC] edink@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Description: ------------ PHP 4.3.10 crashes every time I try to call an method on an COM object. Several users of "my" software has reported the same problem. When using PHP 4.3.9 or 5.0.3 it does not crash. To confirm that it was not a bug in my code, I created a small dummy ATL server component in Visual Studio 2003 (containing almost no code) which a exposed dummy method that just created a message box. When I create an instance of it in VBA, PHP4.3.9 and PHP 5.0.3. It crashes in 4.3.10 and the latest available development build. Reproduce code: --------------- <? $app = new COM("DummyTest.Dummy"); $app->Test(); ?> You either need to download the DummyTest ATL server from here and compile it yourself (in VS 2003) http://www.hmailserver.com/PHPBug/DummyTest.rar Or download the DLL and register it using regsvr32.exe http://www.hmailserver.com/PHPBug/DummyTest.dll Expected result: ---------------- The Test() function shows a message with the text OK. Test it in 4.3.9 or 5.0.3 to see expected result. Actual result: -------------- It crashes every single time I've tried it. On my computer, the following message is shown: An exception 'Unhandled Win32 Exception' has occured in PHP.exe. Couldn't find information on how to turn on backtrace in an win32 environment.