php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79299 com_print_typeinfo prints duplicate variables
Submitted: 2020-02-23 18:01 UTC Modified: 2020-02-23 22:33 UTC
From: litiano dot moura at yahoo dot com dot br Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.4.3 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: litiano dot moura at yahoo dot com dot br
New email:
PHP Version: OS:

 

 [2020-02-23 18:01 UTC] litiano dot moura at yahoo dot com dot br
Description:
------------
$ie = new \COM("InternetExplorer.Application");
com_print_typeinfo($ie);

Expected result:
----------------
[...]
/* DISPID=-525 */
/* VT_HRESULT [25] */
var $ReadyState;

/* DISPID=550 */
/* VT_HRESULT [25] */
/* Controls if the frame is offline (read from cache) */
var $Offline;

/* DISPID=551 */
/* VT_HRESULT [25] */
/* Controls if any dialog boxes can be shown */
var $Silent;

[...]

Actual result:
--------------
[...]
/* DISPID=-525 */
/* VT_HRESULT [25] */
var $ReadyState;

/* DISPID=550 */
/* VT_HRESULT [25] */
/* Controls if the frame is offline (read from cache) */
var $Offline;

/* DISPID=550 */
/* VT_HRESULT [25] */
/* Controls if the frame is offline (read from cache) */
var $Offline;

/* DISPID=551 */
/* VT_HRESULT [25] */
/* Controls if any dialog boxes can be shown */
var $Silent;

/* DISPID=551 */
/* VT_HRESULT [25] */
/* Controls if any dialog boxes can be shown */
var $Silent;
[...]

Patches

fix_com_print_typeinfo (last revision 2020-02-23 18:01 UTC by litiano dot moura at yahoo dot com dot br)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-23 22:33 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-02-23 22:33 UTC] cmb@php.net
Thanks for this awesome bug report! :)
 [2020-02-23 22:36 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9e6358af36e71fa867b3de24dae2ec76d678c428
Log: Fix #79299: com_print_typeinfo prints duplicate variables
 [2020-02-23 22:36 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC