mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
25 lines
380 B
PHP
25 lines
380 B
PHP
--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===
|