Annotation of embedaddon/php/ext/simplexml/tests/bug37076_1.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute)
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
        !             5: --FILE--
        !             6: <?php
        !             7: $xml = simplexml_load_string("<root><foo /></root>");
        !             8: $xml->{""} .= "bar";
        !             9: print $xml->asXML();
        !            10: ?>
        !            11: ===DONE===
        !            12: --EXPECTF--
        !            13: Warning: main(): Cannot write or create unnamed element in %s on line %d
        !            14: 
        !            15: Warning: main(): Cannot write or create unnamed element in %s on line %d
        !            16: <?xml version="1.0"?>
        !            17: <root><foo/></root>
        !            18: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>