php.net |  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
Votes:6
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kir at post dot kg
New email:
PHP Version: OS:

 

 [2004-12-24 06:35 UTC] kir at post dot kg
Description:
------------
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 (http://snaps.php.net/win32/php4-win32-STABLE-200412232130.zip), 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->Documents->Add(); 
$word->Selection->Typetext("new text"); 
$word->Documents[1]->SaveAs("new.doc", 0);
$word->Quit();
$word->Release();
$word = null;


Expected result:
----------------
Create new word document

Actual result:
--------------
Not created

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-24 09:25 UTC] kir at post dot kg
Update http://snaps.php.net/win32/php4-win32-STABLE-200412240530.zip gave same result
 [2004-12-26 23:12 UTC] edink@php.net
Verified.

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] edink@php.net
Could please try with the latest php4 snapshot from http://snaps.php.net/

Then replace php4ts.dll file with this one http://emini.dk/php4ts.dll.zip

 [2005-01-13 07:35 UTC] kir at post dot kg
Checked with PHP Version 4.3.11-dev & new dll http://emini.dk/php4ts.dll.zip

works correctly.

10x
 [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] edink@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 25 05:01:27 2024 UTC