From: fLAre_Dra_X at yahoo dot com Operating system: Windows XP SP 2 PHP version: 5.0.1 PHP Bug Type: COM related Bug description: Failed create COM object
Description: ------------ I've download the version of PHP : http://snaps.php.net/win32/php5.0-win32-latest.zip It's work to call COM class, but when create object like word.application it failed. My configuration is disable all COM option on php.ini like com.allow_dcom. Is there any configuration that i need to do with my php or with my IIS ??? Reproduce code: --------------- <?php ini_set("com.allow_dcom","true"); // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); print "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some weird stuff $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); //closing word $word->Quit(); //free the object $word->Release(); $word = null; ?> Expected result: ---------------- Com object of word. Actual result: -------------- PHP Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `word.application': Access is denied. ' in E:\Inetpub\wwwroot\tutor\com_word.php:4 Stack trace: #0 E:\Inetpub\wwwroot\tutor\com_word.php(4): com->com('word.applicatio...') #1 {main} thrown in E:\Inetpub\wwwroot\tutor\com_word.php on line 4 -- Edit bug report at http://bugs.php.net/?id=32133&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32133&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32133&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32133&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32133&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32133&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32133&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32133&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32133&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32133&r=support Expected behavior: http://bugs.php.net/fix.php?id=32133&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32133&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32133&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32133&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32133&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32133&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32133&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32133&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32133&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32133&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32133&r=mysqlcfg
