bug71539_6.phpt 232 B

123456789101112131415
  1. --TEST--
  2. Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
  3. --FILE--
  4. <?php
  5. $name = 'a';
  6. for ($i = 0; $i < 100000; $i++) {
  7. if ($name != 'i') {
  8. $$name =& $GLOBALS;
  9. }
  10. $name++;
  11. }
  12. ?>
  13. OK
  14. --EXPECT--
  15. OK