xref: /PHP-8.1/ext/opcache/tests/ssa_bug_001.phpt (revision e9f783fc)
1--TEST--
2SSA construction for CFG with unreachable basic blocks
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7class X {
8    public function __get($n) {
9      if ($n === 'type') {
10        trigger_error('Deprecated type property called; use instanceof', E_USER_NOTICE);
11        switch (get_class($this)) {
12          case 'HTMLPurifier_Token_Start':      return 'start';
13          default: return null;
14        }
15      }
16    }
17}
18?>
19OK
20--EXPECT--
21OK
22