📄 Viewing: ssa_bug_001.phpt

--TEST--
SSA constrution for CFG with unreachable basic blocks
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class X {
    public function __get($n) {
      if ($n === 'type') {
        trigger_error('Deprecated type property called; use instanceof', E_USER_NOTICE);
        switch (get_class($this)) {
          case 'HTMLPurifier_Token_Start':      return 'start';
          default: return null;
        }
      }
    }
}
?>
OK
--EXPECT--
OK

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/opcache/tests