ID: 35954
Comment by: bke15 at gmx dot de
Reported By: lukasoz at bigpond dot net dot au
Status: Assigned
Bug Type: COM related
Operating System: Windows XP SP2
PHP Version: 5.1.1
Assigned To: wez
New Comment:
Hi
I have the same Problem using DomDocuments. In release 5.0.5 this
sample works fine. Sinve 5.1 until 5.1.2 we get the same error as
obove.
Sample:
<?
try {
// Count Items found
echo "Searching for Process :" . $c_process_title . " on all
items.<br><br>";
$objNodeList = $dom->documentElement->selectNodes("/item");
if( $objNodeList->length > 0 ) {
echo "Found (" . $objNodeList->length . ") Item(s)<br>";
while( $node = $objNodeList->nextNode() ) {
$id = $node->selectSingleNode("identity")->text;
echo "<li>" .
$node->selectSingleNode("title")->text . "
($id)</li>";
}
} else {
echo "nothing found<br>";
}
} catch (Exception $e) {
die("Exception caught : " . $e->getMessage());
}
?>
Output in Browser:
Searching for Process :'Test' on all items.
Found (4) Item(s)
Exception caught : Error [0x80020003] Member not found.
My 5.0.5 PHP executes this correct and lists the 4 items.
Previous Comments:
------------------------------------------------------------------------
[2006-01-10 02:58:18] lukasoz at bigpond dot net dot au
Description:
------------
With PHP 5.1.1 and Apache 2.0.55, running PHP as an Apache module, many
COM objects (applications AND DLLs) do not seem to instantiate
properly.
COM permissions are set correctly in DCOMConfig, and the offending code
works correctly in PHP 5.0.5 and earlier.
See the attached example using the freely available iTunes
Reproduce code:
---------------
$iTunes = new COM("iTunes.Application") or die("Unable to open
iTunes");
Expected result:
----------------
Fatal error: Uncaught exception 'com_exception' with message 'Error
[0x80020003] Member not found. ' in C:\Program Files\Apache
Group\Apache2\htdocs\test.php:3 Stack trace: #0 C:\Program Files\Apache
Group\Apache2\htdocs\test.php(3): unknown() #1 {main} thrown in
C:\Program Files\Apache Group\Apache2\htdocs\test.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35954&edit=1