mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
23 lines
357 B
PHP
23 lines
357 B
PHP
--TEST--
|
|
Bug #74623: Infinite loop in type inference when using HTMLPurifier
|
|
--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===
|