xref: /PHP-8.3/ext/spl/tests/bug61453.phpt (revision f8d79582)
1--TEST--
2Bug #61453:	SplObjectStorage does not identify objects correctly
3--FILE--
4<?php
5$limit = 1000;
6$objects = new SplObjectStorage;
7for($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==
20