xref: /PHP-8.4/ext/libxml/tests/bug69753.phpt (revision 30dd2916)
1--TEST--
2Bug #69753 - libXMLError::file contains invalid URI
3--EXTENSIONS--
4dom
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
8if (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");
9?>
10--FILE--
11<?php
12libxml_use_internal_errors(true);
13$doc = new DomDocument();
14$doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753.xml');
15$error = libxml_get_last_error();
16var_dump($error->file);
17?>
18--EXPECTF--
19string(%d) "%s\ext\libxml\tests\bug69753.xml"
20