Download src/php/php-src/ext/libxml/tests/bug79191.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/libxml/tests/bug79191.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/libxml/tests/bug79191.phpt
-
curl -L -o bug79191.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/libxml/tests/bug79191.phpt
392 Bytes
| --TEST-- | |
| Bug #79191 (Error in SoapClient ctor disables DOMDocument::save()) | |
| --EXTENSIONS-- | |
| soap | |
| dom | |
| --FILE-- | |
| try { | |
| new \SoapClient('does-not-exist.wsdl'); | |
| } catch (Throwable $t) { | |
| } | |
| $dom = new DOMDocument; | |
| $dom->loadxml('<?xml version="1.0" ?><root />'); | |
| var_dump($dom->save(__DIR__ . '/bug79191.xml')); | |
| --CLEAN-- | |
| unlink(__DIR__ . '/bug79191.xml'); | |
| --EXPECTF-- | |
| int(%d) | |