1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/opcache/tests/bug74623.phpt
Christoph M. Becker 75bc3446f8 Add missing SKIPIFs
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 17:21:16 +02:00

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===