|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31280 Impossible to instance word XP with COM and php 4.3.10
Submitted: 2004-12-24 06:35 UTC Modified: 2005-01-18 09:36 UTC
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:2 (40.0%)
From: kir at post dot kg Assigned: andi (profile)
Status: Closed Package: COM related
PHP Version: 4.3.10 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2004-12-24 06:35 UTC] kir at post dot kg
Hello. i'm using com object to generate word file on server-side with word xp. Everything was OK until i change php from 4.3.9 to 4.3.10. My Apache call an erorr in Windows XP. 
After using last update php (, apache start to call an erorr after $word->Visible = 0; Before update - after $word = new COM("word.application");

Reproduce code:
$word = new COM("word.application") or die("Unable to instanciate Word");
$word->Visible = 0;
$word->Selection->Typetext("new text"); 
$word->Documents[1]->SaveAs("new.doc", 0);
$word = null;

Expected result:
Create new word document

Actual result:
Not created


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-24 09:25 UTC] kir at post dot kg
Update gave same result
 [2004-12-26 23:12 UTC]

It seems that code execution never gets into the part where refcount is increased in zend_execute.c around lne 1580.

Stas could you have a look?
 [2005-01-10 05:28 UTC] kir at post dot kg
And what I shall do? I need this feature badly!!!
 [2005-01-13 01:03 UTC]
Could please try with the latest php4 snapshot from

Then replace php4ts.dll file with this one

 [2005-01-13 07:35 UTC] kir at post dot kg
Checked with PHP Version 4.3.11-dev & new dll

works correctly.

 [2005-01-18 00:57 UTC] packager at rpmcenter dot org
The new dll works perfectly, hopefully the fix will be commit to CVS soon.
 [2005-01-18 09:36 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 04:01:34 2024 UTC