xref: /PHP-7.3/ext/opcache/tests/ssa_bug_001.phpt (revision 75bc3446)
1--TEST--
2SSA constrution for CFG with unreachable basic blocks
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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