note 54844 added to faq.com

From: Date: Sun, 17 Jul 2005 11:56:41 +0000
Subject: note 54844 added to faq.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-92075@lists.php.net to get a copy of this message
Re: The Windows English CHM Sample with MS Word Automation. I see that $Word->Release() is called after $Word->Quit(). This seems to be erroneous. Actually, $Word->Release() should not have to be called if proper COM garbage collection is taking place. Release() is a C++ construction not used in either Visual Basic or VBScript or even MS-JScript. Just to be sure, however, I ran the sample through php.exe (5.04 CLI on Windows XP SP1 with Office 2003) and got a RPC failed error on the line containing $Word->Release(). The rest of the sample works fine, and the results are as expected. So, I propose 2 scenarios: 1.There is a problem with the documentation (more likely). 2.There is a problem with PHP504 itself, as this problem is reproduced with any COM Automation call, not just Word. ---- Manual Page -- http://www.php.net/manual/en/faq.com.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54844 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54844&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54844&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92075) next »