bug61453.phpt 369 B

12345678910111213141516171819
  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. if(isset($objects[$object])){
  10. die("this should never happen, but did after $i iteration");
  11. }
  12. $objects[$object] = 1;
  13. }
  14. ?>
  15. ==DONE==
  16. --EXPECT--
  17. ==DONE==