Download src/php/php-src/ext/com_dotnet/tests/bug79242.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug79242.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/bug79242.phpt
-
curl -L -o bug79242.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug79242.phpt
390 Bytes
| --TEST-- | |
| Bug #79242 (COM error constants don't match com_exception codes) | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only"); | |
| --FILE-- | |
| var_dump( | |
| DISP_E_DIVBYZERO, | |
| DISP_E_OVERFLOW, | |
| DISP_E_BADINDEX, | |
| MK_E_UNAVAILABLE | |
| ); | |
| --EXPECT-- | |
| int(-2147352558) | |
| int(-2147352566) | |
| int(-2147352565) | |
| int(-2147221021) | |