mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
22 lines
438 B
PHP
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
|