xref: /PHP-8.2/ext/opcache/tests/bug70237.phpt (revision e9f783fc)
1--TEST--
2Bug #70237 (Empty while and do-while segmentation fault with opcode on CLI enabled)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10
11
12function neverUsed() {
13    $bool = false;
14    while ($bool) { };
15    //do { } while ($bool);
16}
17?>
18okey
19--EXPECT--
20okey
21