|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31482 Crashes when calling method on COM objetct
Submitted: 2005-01-11 00:41 UTC Modified: 2005-01-13 00:58 UTC
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:2 (66.7%)
From: martin at hmailserver dot com Assigned:
Status: Not a bug Package: COM related
PHP Version: 4CVS-2005-01-10 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: martin at hmailserver dot com
New email:
PHP Version: OS:


 [2005-01-11 00:41 UTC] martin at hmailserver dot com
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");

You either need to download the DummyTest ATL server from here and compile it yourself (in VS 2003)

Or download the DLL and register it using regsvr32.exe

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-11 04:01 UTC]
Still unresolved and critical for the next release.
 [2005-01-13 00:58 UTC]
This is a dupe of #31280. Tune in there for progres on this issue.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 19:05:55 2022 UTC