xref: /PHP-8.2/ext/libxml/tests/bug69753.phpt (revision 74859783)
1--TEST--
2Bug #69753 - libXMLError::file contains invalid URI
3--XFAIL--
4Awaiting upstream fix: https://bugzilla.gnome.org/show_bug.cgi?id=750365
5--EXTENSIONS--
6dom
7--SKIPIF--
8<?php
9if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
10?>
11--FILE--
12<?php
13libxml_use_internal_errors(true);
14$doc = new DomDocument();
15$doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753.xml');
16$error = libxml_get_last_error();
17var_dump($error->file);
18?>
19--EXPECTF--
20string(%d) "file:///%s/ext/libxml/tests/bug69753.xml"
21