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