xref: /PHP-7.3/ext/opcache/tests/bug70237.phpt (revision 79cd9a18)
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--SKIPIF--
7<?php require_once('skipif.inc'); ?>
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