source: src/router/php7/Zend/tests/inference_infinite_loop.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 260 bytes
Line 
1--TEST--
2Type inference should not result in infinite loop
3--FILE--
4<?php
5
6function test() {
7    $b = false;
8    do {
9        $a = $a + PHP_INT_MAX + 2;
10        $a = 0;
11    } while ($b);
12}
13test();
14
15?>
16--EXPECTF--
17Notice: Undefined variable: a in %s on line %d
Note: See TracBrowser for help on using the repository browser.