Bug #79242 [Asn->Csd]: COM error constants don't match com_exception codes on x86
| From: | cmb@php.net | Date: | Fri, 07 Feb 2020 17:12:21 +0000 |
| Subject: | Bug #79242 [Asn->Csd]: COM error constants don't match com_exception codes on x86 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225432@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79242&edit=1
ID: 79242
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: COM error constants don't match com_exception codes
on x86
-Status: Assigned
+Status: Closed
Type: Bug
Package: COM related
Operating System: Windows x86
PHP Version: 7.3Git-2020-02-07 (Git)
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b9738f5802d15ba5d593ae09a6e63e49f9d7880f
Log: Fix #79242: COM error constants don't match com_exception codes
Previous Comments:
------------------------------------------------------------------------
[2020-02-07 16:30:26] cmb@php.net
Description:
------------
All four available COM error constants actually have the value -1,
what makes them indistinguishable, but more importantly makes them
useless for checking com_exception codes; the latter can be seen
when running 27974.phpt, which fails due to this mismatch.
Test script:
---------------
<?php
var_dump(
DISP_E_DIVBYZERO,
DISP_E_OVERFLOW,
DISP_E_BADINDEX,
MK_E_UNAVAILABLE
);
?>
Expected result:
----------------
int(-2147352558)
int(-2147352566)
int(-2147352565)
int(-2147221021)
Actual result:
--------------
int(-1)
int(-1)
int(-1)
int(-1)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79242&edit=1