From:             csaba at alum dot mit dot edu
Operating system: Win XP Pro
PHP version:      5.2.4
PHP Bug Type:     COM related
Bug description:  new COM("HTMLFile") => warnings

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 bug report at http://bugs.php.net/?id=42551&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42551&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42551&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42551&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42551&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42551&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42551&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42551&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42551&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42551&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42551&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42551&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42551&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42551&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42551&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42551&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42551&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42551&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42551&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42551&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42551&r=mysqlcfg

Reply via email to