Download src/php/php-src/ext/com_dotnet/tests/bug66322.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug66322.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/bug66322.phpt
-
curl -L -o bug66322.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug66322.phpt
568 Bytes
| --TEST-- | |
| Bug #66322 (COMPersistHelper::SaveToFile can save to wrong location) | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --SKIPIF-- | |
| try { | |
| new COM('Word.Application'); | |
| } catch (com_exception $ex) { | |
| die('skip MS Word not available'); | |
| } | |
| if (getenv("SKIP_SLOW_TESTS")) die('skip slow test'); | |
| --FILE-- | |
| $w = new COM('Word.Application'); | |
| $doc = $w->Documents->Add(); | |
| $ph = new COMPersistHelper($doc); | |
| $filename = __DIR__ . '\\..\\' . basename(__DIR__) . '\\66322.docx'; | |
| $ph->SaveToFile($filename); | |
| var_dump(file_exists($filename)); | |
| $w->Quit(); | |
| --EXPECT-- | |
| bool(true) | |