php-src/ext/opcache/tests/ssa_bug_001.phpt
2015-12-23 03:52:38 +03:00

20 lines
414 B
PHP

--TEST--
SSA constrution for CFG with unreachable basic blocks
--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