| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2006-01-10 02:58 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 08:00:01 2025 UTC | 
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.