gc_044.phpt 248 B

12345678910111213141516
  1. --TEST--
  2. GC of object property table (order variation)
  3. --FILE--
  4. <?php
  5. function test() {
  6. $o1 = new stdClass;
  7. $o2 = new stdClass;
  8. $a = ['prop' => $o2];
  9. $o = $o1;
  10. $o2->a = (object) $a;
  11. }
  12. test();
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. ===DONE===