Download src/php/php-src/ext/com_dotnet/tests/gh8778.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/gh8778.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/gh8778.phpt
-
curl -L -o gh8778.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/gh8778.phpt
301 Bytes
| --TEST-- | |
| Bug GH-8778 (Integer arithmetic with large number variants fails) | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE < 8) die("skip for 64bit only"); | |
| --FILE-- | |
| $int = 0x100000000; | |
| var_dump( | |
| $int, | |
| new variant($int) + 1 | |
| ); | |
| --EXPECT-- | |
| int(4294967296) | |
| int(4294967297) | |