1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_001.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

22 lines
438 B
PHP

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