|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9001 Unexpected error message
Submitted: 2001-01-30 08:55 UTC Modified: 2001-03-02 23:10 UTC
From: sjrijk at yahoo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.3pl1 OS: Win 2000 / IIS 5.0
Private report: No CVE-ID: None
 [2001-01-30 08:55 UTC] sjrijk at yahoo dot com
When the following commands are executed:

$word = new COM("word.application") or die("Unable to instantiate Word");

the following error appears:

Warning: Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: Server execution failed in c:\inetpub\wwwroot\test.php on line 14
Unable to instantiate Word

This a very odd error, because the Task Manager shows that PHP has executed the Word application (as winword.exe) w/o any problem.

What's even more odd, the above used to work w/o any problems, although there have not been any changes in configuration.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-30 19:16 UTC]
since this is a windows error message and not a php one, i can only imagine that there's something wrong with your office installation.

have you changed something in your registry ?

try to run the office-setup again.

 [2001-01-31 02:12 UTC] sjrijk at yahoo dot com
No, that's the strange thing.
Nothing has changed in the system's registry;
No programs have been (un)installed during the time.

Is it perhaps possible that PHP erases or alters the system's registry (unknowningly) upon failure?
I've tested the COM objects (together with MS Word) quite a lot and not all my tests were quite successfull.

 [2001-01-31 04:48 UTC]
hmm, can you try executing your script with the php.exe on your system (without the webserver in the middle), maybe it has to do with the user rights of the IUSR_.

does it work with other scripting languages (e.g. perl, JScript) ?

php does nothing with the registry, imo the IUSR_ has not enough rights to do so.

 [2001-02-02 13:06 UTC]
no feedback.
 [2001-03-02 07:14 UTC] sjrijk at yahoo dot com
I've uninstalled IIS 5.0 and replaced it with the latest version of Apache.

The code works like clockwork.

No alterations were necessary.

Seems the problem it with IIS instead of with the installation of MS Win2K or MS Office.

 [2001-03-02 23:10 UTC]
user error
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 23:01:30 2024 UTC