mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
23 lines
411 B
Plaintext
23 lines
411 B
Plaintext
|
--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
|
||
|
|