cvs: php-src /ext/dom/tests bug37456.phpt dom.ent dom.xml

From: Date: Wed, 17 May 2006 16:32:35 +0000
Subject: cvs: php-src /ext/dom/tests bug37456.phpt dom.ent dom.xml
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-38247@lists.php.net to get a copy of this message
rrichards Wed May 17 16:32:35 2006 UTC Added files: /php-src/ext/dom/tests bug37456.phpt dom.xml dom.ent Log: add test http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/tests/bug37456.phpt?view=markup&rev=1.1 Index: php-src/ext/dom/tests/bug37456.phpt +++ php-src/ext/dom/tests/bug37456.phpt --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', '&gt;'); $attr = $root->setAttribute('bar', 'newval'); print $attr->nodeValue; ?> --EXPECT-- newval http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/tests/dom.xml?view=markup&rev=1.1 Index: php-src/ext/dom/tests/dom.xml +++ php-src/ext/dom/tests/dom.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE root [ <!ENTITY % incent SYSTEM "dom.ent"> %incent; ]> <root> <foo bar="" /> </root> http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/tests/dom.ent?view=markup&rev=1.1 Index: php-src/ext/dom/tests/dom.ent +++ php-src/ext/dom/tests/dom.ent <!ENTITY amp "&#38;#38;"> <!ENTITY gt "&#62;"> <!ENTITY % coreattrs "title CDATA #IMPLIED"> <!ENTITY % attrs "%coreattrs;"> <!ATTLIST foo bar CDATA #IMPLIED> <!ELEMENT foo (#PCDATA)> <!ELEMENT root (foo)+> <!ATTLIST th %attrs; >

« previous php.cvs (#38247) next »