xref: /PHP-8.2/ext/opcache/tests/jit/nan_001.phpt (revision 7710047e)
1--TEST--
2NaN handling: 001
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11$b = NAN;
12for ($i = 0; $i < 3; $i++) {
13    if ($b) { echo "nan is true\n"; }
14    else { echo "nan is false\n"; }
15}
16?>
17--EXPECT--
18nan is true
19nan is true
20nan is true
21