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