Annotation of embedaddon/php/ext/simplexml/tests/bug41175.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #41175 (addAttribute() fails to add an attribute with an empty value)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: $xml = new SimpleXmlElement("<img></img>");
! 9: $xml->addAttribute("src", "foo");
! 10: $xml->addAttribute("alt", "");
! 11: echo $xml->asXML();
! 12:
! 13: ?>
! 14: ===DONE===
! 15: --EXPECT--
! 16: <?xml version="1.0"?>
! 17: <img src="foo" alt=""/>
! 18: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>