From: csaba at alum dot mit dot edu
Operating system: Win XP Pro
PHP version: 5.1.1
PHP Bug Type: COM related
Bug description: CLI errors upon exit if class is left on IE
Description:
------------
If IE is left open when a PHP script ends, and we have affixed a class
instance to IE, CLI generates an error.
Csaba Gabor from Vienna
Reproduce code:
---------------
<?php
$ie = new COM("InternetExplorer.Application"); // new IE
$ie->visible = true; // show it
$ie->Navigate2("about:blank"); // give IE empty DOM
while ($ie->readyState<4) usleep(10000); // wait for ready
class frob { } // dummy class
$frob = new frob; // instantiate it
$window=$ie->document->parentWindow; // window ref
$window->execScript("window.myclass=false"); // always allocate ie vars
$window->myclass = $frob; // pathway to PHP
$window->alert ("Program is ending"); // proof of no errors to here
//$window->myclass = null; // CLI errors if this commented out
?>
Expected result:
----------------
PHP is quite good about cleaning up after itself. I expect PHP to nicely
finish and leave IE up, without and CLI error dialogs asking if I want to
send a report to Microsoft.
Actual result:
--------------
After dismissing the "Program is ending" alert box, I get the dreaded CLI
error dialog asking if I want to send a report to Microsoft.
--
Edit bug report at http://bugs.php.net/?id=35872&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35872&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35872&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35872&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35872&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35872&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35872&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35872&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35872&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35872&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35872&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35872&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35872&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35872&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35872&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35872&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35872&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35872&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35872&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35872&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35872&r=mysqlcfg