TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
377 B
23 lines
377 B
--TEST--
|
|
ZE2 A final class cannot be inherited
|
|
--SKIPIF--
|
|
<?php die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
final class base {
|
|
function show() {
|
|
echo "base\n";
|
|
}
|
|
}
|
|
|
|
class derived extends base {
|
|
}
|
|
|
|
function main() {
|
|
$t = new base();
|
|
echo "Done\n"; // shouldn't be displayed
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class derived cannot extend final class base in %s on line %d
|
|
|