xref: /php-src/ext/dom/tests/gh14343.phpt (revision 88ff32a2)
1--TEST--
2GH-14343 (Memory leak in xml and dom)
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$aDOM = new DOMDocument();
8$fromdom = new DOMDocument();
9$fromdom->loadXML('<data xmlns:ai="http://test.org" ai:attr="namespaced" />');
10$attr= $fromdom->firstChild->attributes->item(0);
11$att = $aDOM->importNode($attr);
12echo $aDOM->saveXML($att);
13?>
14--EXPECT--
15 ai:attr="namespaced"
16