From: parviz_ahmadi at yahoo dot com
Operating system:
PHP version: 5.2.10
PHP Bug Type: COM related
Bug description: Fatal error: Class 'COM' not found
Description:
------------
Dear Sir/ Madam,
what is solution in PHP5 if There is no COM extension in PHP 5 for
creating object below :
$browser = new COM("InternetExplorer.Application");
Also my host operating system in linux and php 5.2.9 .
Thank you.
Parviz.
Reproduce code:
---------------
---
<?php
set_time_limit(2000) ;
$browser = new COM("InternetExplorer.Application") or die("Unable to
instantiate COM");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Fullscreen = true;
$browser->Navigate("http://www.libgd.org");
/* Still working? */
while ($browser->Busy) {
com_message_pump(4000);
}
$im = imagegrabwindow($handle, 0);
$browser->Quit();
imagepng($im, "iesnap.png");
imagedestroy($im);
?> ---
Actual result:
--------------
Fatal error: Class 'COM' not found in ***/test.php on line 3
--
Edit bug report at http://bugs.php.net/?id=49035&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49035&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49035&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49035&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49035&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49035&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49035&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49035&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49035&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49035&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49035&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49035&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49035&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49035&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49035&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49035&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49035&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49035&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49035&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49035&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49035&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49035&r=mysqlcfg