diff options
Diffstat (limited to 'ext/simplexml/tests/bug40451.phpt')
-rw-r--r-- | ext/simplexml/tests/bug40451.phpt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/simplexml/tests/bug40451.phpt b/ext/simplexml/tests/bug40451.phpt index 1a499a731d..afd78c769f 100644 --- a/ext/simplexml/tests/bug40451.phpt +++ b/ext/simplexml/tests/bug40451.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #40451 (addAttribute() may crash when used with non-existent child node) +--SKIPIF-- +<?php if (!extension_loaded("simplexml")) print "skip"; ?> --FILE-- <?php @@ -15,8 +17,8 @@ $xml = simplexml_load_string($string); $add = $xml->addChild('Host'); $add->Host->addAttribute('enable', 'true'); -echo "Done\n"; ?> +===DONE=== --EXPECTF-- Warning: SimpleXMLElement::addAttribute(): Unable to locate parent Element in %s on line %d -Done +===DONE=== |