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: Not Work
Description: ------------ I've try to use some advantage of PHP in connection to OLE or COM object. I follow some script doing that but found some error like bellow. My system specs are : AMD Athlon XP 1800+ RAM 512 MB HD Seagate 40 GB OS Windows XP SP 2 WebServer IIS 5.1 integrated with MS.Net Framework 1.1.4322 and PHP 5.0.0RC1-win32 CGI Mode Other kind like access MySQL, normal PHP script it's work normally, only for COM procedure it doesn't work ??? Reproduce code: --------------- <?php $word = new COM("word.application")or die "word cannot opened"; $word->Visible = 1; $word->Documents->Add(); $word->Selections->TypeText("Pemrograman PHP 5 ..."); $word->Documents[1]->SaveAs("C:\\inetpub\\wwwroot\\test.doc"); $word->Quit(); $word = null; $buka = new COM("InternetExplorer.Application"); $buka->Visible = true; $buka->Navigate("http://localhost/test.doc"); ?> Expected result: ---------------- I've expected that COM Object of Ms.Word will be created and save a documents, then server open new IE window then get Ms.Word OLE inside it. Actual result: -------------- It bought me error : Error xxxx: Class "com" not found error on line xxxx I've think that my PHP doesn't have COM class for creating COM Object. -- Edit bug report at http://bugs.php.net/?id=32123&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32123&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32123&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32123&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32123&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32123&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32123&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32123&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32123&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32123&r=support Expected behavior: http://bugs.php.net/fix.php?id=32123&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32123&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32123&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32123&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32123&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32123&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32123&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32123&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32123&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32123&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32123&r=mysqlcfg