Annotation of embedaddon/php/Zend/tests/bug43918.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #43918 (Segmentation fault in garbage collector)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7: $xmlstr = <<<XML
! 8: <?xml version='1.0' standalone='yes'?>
! 9: <movies>
! 10: <movie>
! 11: <title>TEST</title>
! 12: </movie>
! 13: <movie>
! 14: <title>TEST</title>
! 15: </movie>
! 16: <movie>
! 17: <title>TEST</title>
! 18: </movie>
! 19: <movie>
! 20: <title>TEST</title>
! 21: </movie>
! 22: <movie>
! 23: <title>TEST</title>
! 24: </movie>
! 25: <movie>
! 26: <title>TEST</title>
! 27: </movie>
! 28: <movie>
! 29: <title>TEST</title>
! 30: </movie>
! 31: </movies>
! 32: XML;
! 33:
! 34: $Array = array( );
! 35: for( $XX = 0; $XX < 2000; ++$XX )
! 36: {
! 37: $Array[] = $xml = new SimpleXMLElement($xmlstr);
! 38: }
! 39:
! 40: gc_collect_cycles( );
! 41: echo "ok\n";
! 42: ?>
! 43: --EXPECT--
! 44: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>