1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00
Files
archived-php-src/Zend/tests/inference_infinite_loop.phpt
2019-10-02 10:34:08 +02:00

18 lines
261 B
PHP

--TEST--
Type inference should not result in infinite loop
--FILE--
<?php
function test() {
$b = false;
do {
$a = $a + PHP_INT_MAX + 2;
$a = 0;
} while ($b);
}
test();
?>
--EXPECTF--
Warning: Undefined variable: a in %s on line %d