xref: /PHP-7.3/ext/opcache/tests/bug74623.phpt (revision 75bc3446)
1--TEST--
2Bug #74623: Infinite loop in type inference when using HTMLPurifier
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8function crash($arr) {
9    $current_item = false;
10
11    foreach($arr as $item) {
12        if($item->name === 'string') {
13            $current_item = $item;
14        } else {
15            $current_item->a[] = '';
16        }
17    }
18
19}
20
21?>
22===DONE===
23--EXPECT--
24===DONE===
25