Download src/php/php-src/ext/com_dotnet/tests/bug73679.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug73679.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/bug73679.phpt
-
curl -L -o bug73679.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug73679.phpt
702 Bytes
| --TEST-- | |
| Bug #73679 DOTNET read access violation using invalid codepage | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); | |
| if (!class_exists("dotnet")) die("skip mscoree not available"); | |
| --FILE-- | |
| $stack = new DOTNET("mscorlib", "System.Collections.Stack", -2200000000); | |
| $stack->Push(".Net"); | |
| $stack->Push("Hello "); | |
| echo $stack->Pop() . $stack->Pop(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught com_exception: Could not create .Net object - invalid codepage! in %sbug73679.php:%d | |
| Stack trace: | |
| #0 %sbug73679.php(%d): dotnet->__construct('mscorlib', 'System.Collecti...', -2200000000) | |
| #1 {main} | |
| thrown in %sbug73679.php on line %d | |