Annotation of embedaddon/php/ext/spl/tests/bug53144.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #53144 (Segfault in SplObjectStorage::removeAll)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $o1 = new StdClass;
                      7: $o2 = new StdClass;
                      8: 
                      9: $b = new SplObjectStorage();
                     10: $b[$o1] = "bar";
                     11: $b[$o2] = "baz";
                     12: 
                     13: var_dump(count($b));
                     14: $b->removeAll($b);
                     15: var_dump(count($b));
                     16: 
                     17: ?>
                     18: --EXPECTF--
                     19: int(2)
                     20: int(0)

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