blob: d5a833413e656e72b15d50d233b0c0f1ee289320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
Bug #37456 (DOMElement->setAttribute() loops forever)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$doc = new DOMDocument();
$doc->resolveExternals = true;
$doc->load(dirname(__FILE__)."/dom.xml");
$root = $doc->getElementsByTagName('foo')->item(0);
$root->setAttribute('bar', '>');
$attr = $root->setAttribute('bar', 'newval');
print $attr->nodeValue;
?>
--EXPECT--
newval
|