xref: /PHP-8.1/ext/com_dotnet/tests/gh8778.phpt (revision 651e0cc1)
1--TEST--
2Bug GH-8778 (Integer arithmethic with large number variants fails)
3--SKIPIF--
4<?php
5if (!extension_loaded("com_dotnet")) die("skip com_dotnet extension not available");
6if (PHP_INT_SIZE < 8) die("skip for 64bit only");
7?>
8--FILE--
9<?php
10$int = 0x100000000;
11var_dump(
12    $int,
13    new variant($int) + 1
14);
15?>
16--EXPECT--
17int(4294967296)
18int(4294967297)
19