xref: /PHP-8.3/ext/opcache/tests/bug77266.phpt (revision e9f783fc)
1--TEST--
2Bug #77266 (Assertion failed in dce_live_ranges)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11final class Lock
12{
13    private static function clearOrphanedLocks()
14    {
15        $lockList = [];
16
17        $serverMonitors = array();
18        $listCount = count($lockList);
19        if ( is_array($lockList) && $listCount > 0 ) {
20            $v = explode(':', $value);
21            if (!$serverMonitors[$v[0]]['m']) {
22                $serverMonitors[$v[0]]['m'] = new ServerMonitor($v[0]);
23            }
24
25        }
26
27    }
28
29}
30?>
31okey
32--EXPECT--
33okey
34