ID:               42551
 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.2.4
-Assigned To:      
+Assigned To:      wharmby
 New Comment:

Assigned to the maintainer.


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

[2007-09-04 21:13:55] csaba at alum dot mit dot edu

Description:
------------
When I attempt to do
$doc = new COM("HTMLFile");
this results in warnings that Type Library constants True and False are
already defined.  Otherwise, the script runs fine.

The equivalent code as a .vbs file runs wihtout complaints

Csaba Gabor from Vienna

Reproduce code:
---------------
<?php
$doc = new COM("HTMLFile");
$win = $doc->parentWindow;
print ($doc->location . "\n");

$win->ExecScript(
  "window.keepLooping=true");
$win->setTimeout (
  "alert('timeout works');
   window.keepLooping=false;", 2000);

while ($win->keepLooping)
  com_message_pump(200);
print ("Done Looping");
?>

Expected result:
----------------
The only thing I expect to see printed is:
about:blank
Done Looping

Actual result:
--------------
Warning: com::com(): Type library constant True is already defined in
C:\test2.php on line 2

Warning: com::com(): Type library constant False is already defined in
C:\test2.php on line 2
about:blank
Done Looping


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42551&edit=1

Reply via email to