php-windows Digest 19 Dec 2008 01:37:11 -0000 Issue 3548

Topics (messages 29101 through 29106):

Re: Word instance not closing after call to $word->Quit()
        29101 by: Sascha Meyer
        29102 by: Andi Gutmans
        29103 by: Sascha Meyer
        29104 by: Gang Chen
        29105 by: Andi Gutmans

just downloaded 5.2.8 for Windows and no php5isapi.dll file
        29106 by: Fred Silsbee

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi Andi,

Andi wrote:
> Has anyone helped you so far? 
> Looks like a reference counting problem in PHP. There were such problems
> in the past but they were resolved.
> I assume this happens with any COM object you are trying to open?

I haven't found a solution yet and currently use a workaround (create an html 
document and send a faked content-type header before sending the content).
I will have to find a way using WORD with COM because the business requires 
documents with watermarks, page counters, etc and that's just not possible with 
my current "solution".

To get back to your question: I tried a simple Internet Explorer COM call ...
[CODE]
<?php
$iExplore = new COM("InternetExplorer.Application");
sleep(10);
?>
[/CODE]
... and an instance of Internet Explorer (iexplore.exe) appears in the task 
list and is automatically disposed when the script ends - I don't even have to 
call $iExplore->Quit();
Seems as if it is not a general PHP issue but has to do with Word? Do you have 
any hints for Office-Automation via COM or did you do some tests with different 
Office and PHP versions? If other versions are more stable, then I would 
probably have another version installed on the server instead Office 2003.

I will set up a small VBScript to call WINWORD and see if the instance will 
remain in the task list, perhaps this helps clarify the issue.

Thanks for helping!

Sascha

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

--- End Message ---
--- Begin Message ---
Hi Sascha,

Sometimes it's add-ins which cause such issues such as desktop search and 
others. I suggest to try and disable all add-ins and then try again.
Also you may want to try and start Word in safe mode although I am not sure how 
to do it via COM automation. There may be some option which you could pass in.

Let me know if that changes anything.
Andi

> -----Original Message-----
> From: Sascha Meyer [mailto:harlequ...@gmx.de]
> Sent: Tuesday, December 16, 2008 8:15 AM
> To: Andi Gutmans
> Cc: php-wind...@lists.php.net
> Subject: Re: RE: [PHP-WIN] Word instance not closing after call to $word-
> >Quit()
> 
> Hi Andi,
> 
> Andi wrote:
> > Has anyone helped you so far?
> > Looks like a reference counting problem in PHP. There were such problems
> > in the past but they were resolved.
> > I assume this happens with any COM object you are trying to open?
> 
> I haven't found a solution yet and currently use a workaround (create an html
> document and send a faked content-type header before sending the content).
> I will have to find a way using WORD with COM because the business requires
> documents with watermarks, page counters, etc and that's just not possible
> with my current "solution".
> 
> To get back to your question: I tried a simple Internet Explorer COM call ...
> [CODE]
> <?php
> $iExplore = new COM("InternetExplorer.Application");
> sleep(10);
> ?>
> [/CODE]
> ... and an instance of Internet Explorer (iexplore.exe) appears in the task
> list and is automatically disposed when the script ends - I don't even have to
> call $iExplore->Quit();
> Seems as if it is not a general PHP issue but has to do with Word? Do you have
> any hints for Office-Automation via COM or did you do some tests with
> different Office and PHP versions? If other versions are more stable, then I
> would probably have another version installed on the server instead Office
> 2003.
> 
> I will set up a small VBScript to call WINWORD and see if the instance will
> remain in the task list, perhaps this helps clarify the issue.
> 
> Thanks for helping!
> 
> Sascha
> 
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger

--- End Message ---
--- Begin Message ---
I tried the following VBScript ...

[CODE]
dim objWord

set objWord = CreateObject("Word.Application")
objWord.Visible = true
msgbox objWord.Version
objWord.Quit()
[/CODE]

... and the result is: Word loads, the version info is displayed and the 
instance is unloaded again. My only guess is that in this case the calling 
process is also terminated and all references are released and in case of PHP 
the process remains because it runs as a child process of IIS?

Once again my system summary for troubleshooting purposes:
Win 2003 SP2
IIS 7
PHP 5.2.6, CGI

Regards, Sascha
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

--- End Message ---
--- Begin Message ---
Hello Sascha,

Try to reinstall Office. I have encountered this problem before and
the reinstallation solves it. Why ? I don't know :-)

Regards,
Gang Chen

2008/12/17 Sascha Meyer <harlequ...@gmx.de>:
> I tried the following VBScript ...
>
> [CODE]
> dim objWord
>
> set objWord = CreateObject("Word.Application")
> objWord.Visible = true
> msgbox objWord.Version
> objWord.Quit()
> [/CODE]
>
> ... and the result is: Word loads, the version info is displayed and the 
> instance is unloaded again. My only guess is that in this case the calling 
> process is also terminated and all references are released and in case of PHP 
> the process remains because it runs as a child process of IIS?
>
> Once again my system summary for troubleshooting purposes:
> Win 2003 SP2
> IIS 7
> PHP 5.2.6, CGI
>
> Regards, Sascha
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
> http://www.gmx.net/de/go/multimessenger
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP Internals Study
http://www.phpinternals.com

--- End Message ---
--- Begin Message ---
I think it is an add-in which is causing the issue...

Andi

> -----Original Message-----
> From: Gang Chen [mailto:eniac2...@gmail.com]
> Sent: Tuesday, December 16, 2008 2:54 PM
> To: Sascha Meyer
> Cc: Andi Gutmans; php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] Word instance not closing after call to $word->Quit()
> 
> Hello Sascha,
> 
> Try to reinstall Office. I have encountered this problem before and
> the reinstallation solves it. Why ? I don't know :-)
> 
> Regards,
> Gang Chen
> 
> 2008/12/17 Sascha Meyer <harlequ...@gmx.de>:
> > I tried the following VBScript ...
> >
> > [CODE]
> > dim objWord
> >
> > set objWord = CreateObject("Word.Application")
> > objWord.Visible = true
> > msgbox objWord.Version
> > objWord.Quit()
> > [/CODE]
> >
> > ... and the result is: Word loads, the version info is displayed and the
> instance is unloaded again. My only guess is that in this case the calling
> process is also terminated and all references are released and in case of PHP
> the process remains because it runs as a child process of IIS?
> >
> > Once again my system summary for troubleshooting purposes:
> > Win 2003 SP2
> > IIS 7
> > PHP 5.2.6, CGI
> >
> > Regards, Sascha
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> 
> --
> PHP Internals Study
> http://www.phpinternals.com

--- End Message ---
--- Begin Message ---
The file 5.2.8 install.txt speaks of php5isapi.dll

there IS a file pws-php5isapi.reg

I have IIS 5.1 and XP prof SP3

I gave up on getting 5.2.6 to work with SQL SERVER 2005 annd reloaded XP Prof 
and SQL SERVER 2008

I am doing the recommended manual install


      


--- End Message ---

Reply via email to