mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
26 lines
529 B
PHP
26 lines
529 B
PHP
--TEST--
|
|
Bug #79412 (Opcache chokes and uses 100% CPU on specific script)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.optimization_level=-1
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
$limitPerRun = 10;
|
|
foreach ($foo as $bar) {
|
|
$count = 0;
|
|
foreach ($runs as $run) {
|
|
++$count;
|
|
if ($count >= $limitPerRun) {
|
|
break;
|
|
}
|
|
}
|
|
foo($limitPerRun);
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Undefined variable: foo in %s on line %d
|
|
|
|
Warning: Invalid argument supplied for foreach() in %s on line %d
|