From: csaba at alum dot mit dot edu
Operating system: Win XP Pro
PHP version: 5CVS-2005-02-20 (dev)
PHP Bug Type: COM related
Bug description: com_print_typeinfo returning duplicate entries
Description:
------------
com_print_typeinfo is often showing duplicate entries for many of the
properties of various COM objects, for example: IWebBrowser2
Reproduce code:
---------------
<?php
$oShell = new COM("Shell.Application");
$oWins = $oShell->Windows();
foreach ($oWins as $oWin) {
com_print_typeinfo($oWin,"IWebBrowser2");
break; }
?>
Expected result:
----------------
I expect each property to be listed exactly once
Actual result:
--------------
Here's part of the printout:
/* DISPID=555 */
/* VT_BOOL [11] */
/* Controls whether address bar is shown */
var $AddressBar;
/* DISPID=555 */
/* Controls whether address bar is shown */
var $AddressBar;
/* DISPID=556 */
/* VT_BOOL [11] */
/* Controls whether the window is resizable */
var $Resizable;
/* DISPID=556 */
/* Controls whether the window is resizable */
var $Resizable;
As you can see, both properties are shown twice. The first of the two
showings always shows the variant type (e.g. VT_BOOL [11]) whereas the
second does not. It seems superfluous to have these shown twice
(especially since the printouts are so voluminous and the second is a
subset of the first). I have not seen this happen with Methods.
Csaba Gabor from Vienna
--
Edit bug report at http://bugs.php.net/?id=32038&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32038&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32038&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32038&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32038&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32038&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32038&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32038&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32038&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32038&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32038&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32038&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32038&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32038&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32038&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32038&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32038&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32038&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32038&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32038&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32038&r=mysqlcfg