Download src/php/php-src/ext/libxml/tests/bug69753-mb.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/libxml/tests/bug69753-mb.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/libxml/tests/bug69753-mb.phpt
-
curl -L -o bug69753-mb.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/libxml/tests/bug69753-mb.phpt
665 Bytes
| --TEST-- | |
| Bug #69753 - libXMLError::file contains invalid URI | |
| --EXTENSIONS-- | |
| dom | |
| --SKIPIF-- | |
| if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only"); | |
| if (version_compare(LIBXML_DOTTED_VERSION, "2.13.0") < 0) die("skip fails for libxml2 < 2.13.0; https://gitlab.gnome.org/GNOME/libxml2/-/issues/611"); | |
| --FILE-- | |
| libxml_use_internal_errors(true); | |
| $doc = new DomDocument(); | |
| $doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753私はガラスを食べられます.xml'); | |
| $error = libxml_get_last_error(); | |
| var_dump($error->file); | |
| --EXPECTF-- | |
| string(%d) "%s\ext\libxml\tests\bug69753私はガラスを食べられます.xml" | |