25 lines
380 B
Plaintext
25 lines
380 B
Plaintext
|
|
--TEST--
|
||
|
|
Bug #74623: Infinite loop in type inference when using HTMLPurifier
|
||
|
|
--EXTENSIONS--
|
||
|
|
opcache
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
function crash($arr) {
|
||
|
|
$current_item = false;
|
||
|
|
|
||
|
|
foreach($arr as $item) {
|
||
|
|
if($item->name === 'string') {
|
||
|
|
$current_item = $item;
|
||
|
|
} else {
|
||
|
|
$current_item->a[] = '';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|
||
|
|
===DONE===
|
||
|
|
--EXPECT--
|
||
|
|
===DONE===
|