xref: /PHP-8.1/ext/opcache/tests/jit/assign_033.phpt (revision e9f783fc)
1--TEST--
2JIT ASSIGN: 033
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9;opcache.jit_debug=257
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14function foo()
15{
16    $mode = 0;
17    $working = 0;
18    while ($mode == 0) {
19        $working = $mode = 1;
20    }
21}
22echo "ok\n";
23?>
24--EXPECT--
25ok
26