php.net |  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
Votes:1
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
 [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->Documents->Add(); 
$word->Selection->TypeText("This is a test..."); 
$word->Documents[1]->SaveAs("Useless test.doc"); 
$word->Quit(); 
?>

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

Patches

Pull Requests

History

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

- thanks -
 [2003-08-26 00:56 UTC] sniper@php.net
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: Tue Dec 03 08:01:28 2024 UTC