From 43dfe5ec59cd3c47517fbf8ae9963019f8c90c35 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Wed, 17 May 2006 16:32:35 +0000 Subject: [PATCH] add test --- ext/dom/tests/bug37456.phpt | 22 ++++++++++++++++++++++ ext/dom/tests/dom.ent | 8 ++++++++ ext/dom/tests/dom.xml | 8 ++++++++ 3 files changed, 38 insertions(+) create mode 100644 ext/dom/tests/bug37456.phpt create mode 100644 ext/dom/tests/dom.ent create mode 100644 ext/dom/tests/dom.xml diff --git a/ext/dom/tests/bug37456.phpt b/ext/dom/tests/bug37456.phpt new file mode 100644 index 0000000000..904712f4b1 --- /dev/null +++ b/ext/dom/tests/bug37456.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug # 37456 (DOMElement->setAttribute() loops forever) +--SKIPIF-- + +--FILE-- +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 + diff --git a/ext/dom/tests/dom.ent b/ext/dom/tests/dom.ent new file mode 100644 index 0000000000..987ff9dc0f --- /dev/null +++ b/ext/dom/tests/dom.ent @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ext/dom/tests/dom.xml b/ext/dom/tests/dom.xml new file mode 100644 index 0000000000..09ac674e55 --- /dev/null +++ b/ext/dom/tests/dom.xml @@ -0,0 +1,8 @@ + + +%incent; +]> + + + \ No newline at end of file -- 2.40.0