|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22933 COM calls generate XP error
Submitted: 2003-03-27 13:13 UTC Modified: 2003-08-26 00:56 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: cstreeter at andesagroup dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 5CVS-2003-03-27 (dev) OS: Win XP Pro SP1
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: cstreeter at andesagroup dot com
New email:
PHP Version: OS:


 [2003-03-27 13:13 UTC] cstreeter at andesagroup dot com
Here's the code snippet I am using:

$word = new COM("word.application") or die("Unable to instanciate Word"); 
print "Loaded Word, version {$word->Version}\n"; 
$word->Visible = 1; 
$word->Selection->TypeText("This is a test..."); 
$word->Documents[1]->SaveAs("Useless test.doc"); 

instatiating the Word object works fin. I can tell becuse this does not fail when comment all the other code out and I can see in the Windows Task Manager that an instance of Word was instantiated. As soon as I try to do anything else, I get one of those famous XP error screens asking me if I want to send the info to Microsoft.

According to this code (which I got from PHP help site somewhere) it looks fairly straight forward. Nothing fancy going on here. Can you help?

Thank you.

Chris Streeter
The Andesa Corporation
Bethlehem, PA, USA


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-18 08:43 UTC]
Can you please test latest CVS and report whether the problem still exists on XP?

- thanks -
 [2003-08-26 00:56 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 13:01:29 2024 UTC