xref: /php-src/ext/opcache/tests/jit/inc_019.phpt (revision c16ad918)
1--TEST--
2JIT INC: 019
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8;opcache.jit_debug=257
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13function bar($b) {
14    if ($b) {
15        $a = 1;
16    } else {
17        $a = 2;
18    }
19    isset($a);
20    var_dump($a++);
21    return $a;
22}
23var_dump(bar(0));
24?>
25--EXPECT--
26int(2)
27int(3)
28