Annotation of embedaddon/php/ext/spl/tests/bug61453.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #61453: SplObjectStorage does not identify objects correctly
! 3: --FILE--
! 4: <?php
! 5: $limit = 1000;
! 6: $objects = new SplObjectStorage;
! 7: for($i = 0; $i < $limit; $i++){
! 8: $object = new StdClass;
! 9:
! 10: if(isset($objects[$object])){
! 11: die("this should never happen, but did after $i iteration");
! 12: }
! 13:
! 14: $objects[$object] = 1;
! 15: }
! 16: ?>
! 17: ==DONE==
! 18: --EXPECT--
! 19: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>