xref: /php-src/ext/com_dotnet/tests/bug79242.phpt (revision 56f90492)
1--TEST--
2Bug #79242 (COM error constants don't match com_exception codes)
3--EXTENSIONS--
4com_dotnet
5--SKIPIF--
6<?php
7if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
8?>
9--FILE--
10<?php
11var_dump(
12    DISP_E_DIVBYZERO,
13    DISP_E_OVERFLOW,
14    DISP_E_BADINDEX,
15    MK_E_UNAVAILABLE
16);
17?>
18--EXPECT--
19int(-2147352558)
20int(-2147352566)
21int(-2147352565)
22int(-2147221021)
23
24