|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-18 18:41 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
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