xref: /PHP-8.0/ext/libxml/tests/bug69753.phpt (revision f661b105)
1--TEST--
2Bug #69753 - libXMLError::file contains invalid URI
3--XFAIL--
4Awaiting upstream fix: https://bugzilla.gnome.org/show_bug.cgi?id=750365
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
8if (!extension_loaded('dom')) die('skip dom extension not available');
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) "file:///%s/ext/libxml/tests/bug69753.xml"
20