xref: /PHP-7.3/ext/xml/tests/bug26528.phpt (revision 782352c5)
1--TEST--
2Bug #26528 (HTML entities are not being decoded)
3--SKIPIF--
4<?php
5require_once("skipif.inc");
6?>
7--FILE--
8<?php
9	$sample = "<?xml version=\"1.0\"?><test attr=\"angle&lt;bracket\"/>";
10	$parser = xml_parser_create();
11	$res = xml_parse_into_struct($parser,$sample,$vals,$index);
12	xml_parser_free($parser);
13	var_dump($vals);
14?>
15--EXPECT--
16array(1) {
17  [0]=>
18  array(4) {
19    ["tag"]=>
20    string(4) "TEST"
21    ["type"]=>
22    string(8) "complete"
23    ["level"]=>
24    int(1)
25    ["attributes"]=>
26    array(1) {
27      ["ATTR"]=>
28      string(13) "angle<bracket"
29    }
30  }
31}
32