1--TEST--
2xml_error_string() - Basic test on 5 error codes
3--EXTENSIONS--
4xml
5--SKIPIF--
6<?php
7require __DIR__ . '/libxml_expat_skipif.inc';
8skipif(want_expat: true);
9?>
10--FILE--
11<?php
12require __DIR__ . '/xml_error_string_basic.inc';
13?>
14--EXPECT--
15int(3)
16string(16) "no element found"
17int(4)
18string(31) "not well-formed (invalid token)"
19int(5)
20string(14) "unclosed token"
21int(30)
22string(31) "XML declaration not well-formed"
23int(7)
24string(14) "mismatched tag"
25