Annotation of embedaddon/php/ext/simplexml/tests/bug36611.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #36611 (assignment to SimpleXML object attribute changes argument type to string)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: $xml_str = <<<EOD
! 9: <?xml version="1.0" encoding="ISO-8859-1" ?>
! 10: <c_fpobel >
! 11: <pos >
! 12: <pos/>
! 13: </pos>
! 14: </c_fpobel>
! 15: EOD;
! 16:
! 17: $xml = simplexml_load_string ($xml_str) ;
! 18:
! 19: $val = 1;
! 20:
! 21: var_dump($val);
! 22: $zml->pos["act_idx"] = $val;
! 23: var_dump($val) ;
! 24:
! 25: ?>
! 26: ===DONE===
! 27: --EXPECT--
! 28: int(1)
! 29: int(1)
! 30: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>