bug63882.phpt 346 B

123456789101112131415
  1. --TEST--
  2. Bug #63882 (zend_std_compare_objects crash on recursion)
  3. --FILE--
  4. <?php
  5. class Test { public $x = 5; }
  6. $testobj1 = new Test;
  7. $testobj2 = new Test;
  8. $testobj1->x = $testobj1;
  9. $testobj2->x = $testobj2;
  10. var_dump($testobj1 == $testobj2);
  11. ?>
  12. --EXPECTF--
  13. Fatal error: Nesting level too deep - recursive dependency? in %sbug63882.php on line 9