Download src/php/php-src/ext/com_dotnet/tests/bug79332.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug79332.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/bug79332.phpt
-
curl -L -o bug79332.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug79332.phpt
362 Bytes
| --TEST-- | |
| Bug #79332 (php_istreams are never freed) | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --FILE-- | |
| $ph = new COMPersistHelper(null); | |
| try { | |
| $ph->LoadFromStream(fopen(__FILE__, 'r')); | |
| } catch (com_exception $ex) { | |
| // use hard-coded message to avoid localization issues | |
| echo "A com_exception has been thrown\n"; | |
| } | |
| --EXPECT-- | |
| A com_exception has been thrown | |