mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
18 lines
287 B
PHP
18 lines
287 B
PHP
--TEST--
|
|
errmsg: access level must be the same or weaker
|
|
--FILE--
|
|
<?php
|
|
|
|
class test1 {
|
|
protected $var;
|
|
}
|
|
|
|
class test extends test1 {
|
|
private $var;
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Access level to test::$var must be protected (as in class test1) or weaker in %s on line %d
|