Application exception on trying to create any COM object
| Bug #35316 | Application exception on trying to create any COM object | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2005-11-21 19:13 UTC | Modified: | 2005-11-27 13:23 UTC |
|
||||||||||
| From: | Jared dot Williams1 at ntlworld dot com | Assigned: | wez (profile) | |||||||||||
| Status: | Closed | Package: | COM related | |||||||||||
| PHP Version: | 5.1.0RC6 | OS: | Windows 2000 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2005-11-21 19:13 UTC] Jared dot Williams1 at ntlworld dot com
Description:
------------
An application exception occurs when trying to create any COM object.
COM php.ini settings.. (all defaults)
Directive => Local Value => Master Value
com.allow_dcom => 0 => 0
com.autoregister_casesensitive => 1 => 1
com.autoregister_typelib => 0 => 0
com.autoregister_verbose => 0 => 0
com.code_page => no value => no value
com.typelib_file => no value => no value
Reproduce code:
---------------
php -r "$fso = new COM('Scripting.FileSystemObject'); $fso = NULL;"
php -r "$word = new COM('Word.Application'); $word = NULL;"
php -r "$connection = new COM('ADODB.Connection'); $connection = NULL;"
Expected result:
----------------
Nothing.
Actual result:
--------------
---------------------------
php.exe - Application Error
---------------------------
The instruction at "0x100aa8dd" referenced memory at "0x000000f9". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-11-26 02:10 UTC] msisolak at yahoo dot com
[2005-11-26 02:37 UTC] msisolak at yahoo dot com
[2005-11-27 07:41 UTC] yoy at yoy dot com
Win Xp Pro Apache 2 PHP 5.1.0 $conn=new COM('some_ActiveX_object.some_class'); I test it with ActiveX-exe/dll and still my apache crashe couse the error in php5ts.dll module. with V5.0.4.4 I dont see any problem.[2005-11-27 13:23 UTC] rrichards@php.net