|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25055 Fatal error: Class 'com' not found
Submitted: 2003-08-12 09:04 UTC Modified: 2003-08-13 13:03 UTC
From: bart at mediawave dot nl Assigned:
Status: Not a bug Package: COM related
PHP Version: 5.0.0b1 (beta1) OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bart at mediawave dot nl
New email:
PHP Version: OS:


 [2003-08-12 09:04 UTC] bart at mediawave dot nl
I got an error while trying to open Word through the COM class functions. I get an error like: "class com not found".

Reproduce code:
$word = new COM("word.application") or die ('Unable to instanciate Word');

Expected result:
Loading Word object into $word

Actual result:
class com not found

(I don't know the exact error message because I already installed PHP 4.3.2 to make it work)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-12 09:09 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

 [2003-08-13 07:33 UTC] bart at mediawave dot nl
I've searched for hours and hours but didn't find anything anywhere! I've re-installed PHP5 to try and get to the bottom of this. But:

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

keeps producing:

Fatal error: Class 'com' not found in E:\****\****.php on line xx

The exact same code on the exact same machine works perfectly with PHP 4.3.2 installed.

Does this mean that there's a new syntax to load a COM object? I tried all sorts of things but nothing works.
 [2003-08-13 13:03 UTC]
There is no COM extension in PHP 5 (yet). So you can't really report any bugs about it either. Use PHP 4.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 12:03:45 2023 UTC