source: src/router/php7/ext/opcache/tests/ssa_bug_001.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 414 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.