1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
2024-03-17 23:08:47 +00:00

20 lines
369 B
PHP

--TEST--
Bug #61453: SplObjectStorage does not identify objects correctly
--FILE--
<?php
$limit = 1000;
$objects = new SplObjectStorage;
for($i = 0; $i < $limit; $i++){
$object = new StdClass;
if(isset($objects[$object])){
die("this should never happen, but did after $i iteration");
}
$objects[$object] = 1;
}
?>
==DONE==
--EXPECT--
==DONE==