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: false);
9?>
10--FILE--
11<?php
12require __DIR__ . '/xml_error_string_basic.inc';
13?>
14--EXPECTF--
15int(%r5|77%r)
16string(%d) %r"Invalid document end"|"Tag not finished"%r
17int(47)
18string(35) "Processing Instruction not finished"
19int(57)
20string(28) "XML declaration not finished"
21int(64)
22string(17) "Reserved XML Name"
23int(76)
24string(14) "Mismatched tag"
25