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