php-8.0.30-src/ext/opcache/tests/bug74623.phpt

25 lines
405 B
PHP

--TEST--
Bug #74623: Infinite loop in type inference when using HTMLPurifier
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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===