xref: /php-src/ext/opcache/tests/bug74623.phpt (revision e9f783fc)
1--TEST--
2Bug #74623: Infinite loop in type inference when using HTMLPurifier
3--EXTENSIONS--
4opcache
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