ID:               35872
 Updated by:       [EMAIL PROTECTED]
 Reported By:      csaba at alum dot mit dot edu
-Status:           Open
+Status:           Assigned
 Bug Type:         COM related
 Operating System: Win XP Pro
 PHP Version:      5.1.1
-Assigned To:      
+Assigned To:      wez


Previous Comments:
------------------------------------------------------------------------

[2006-01-02 15:32:12] csaba at alum dot mit dot edu

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 this bug report at http://bugs.php.net/?id=35872&edit=1

Reply via email to