bug74623.phpt 380 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #74623: Infinite loop in type inference when using HTMLPurifier
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function crash($arr) {
  8. $current_item = false;
  9. foreach($arr as $item) {
  10. if($item->name === 'string') {
  11. $current_item = $item;
  12. } else {
  13. $current_item->a[] = '';
  14. }
  15. }
  16. }
  17. ?>
  18. ===DONE===
  19. --EXPECT--
  20. ===DONE===