php-src/Zend/tests/errmsg_023.phpt

18 lines
293 B
Plaintext
Raw Normal View History

2007-02-07 11:10:32 +00:00
--TEST--
errmsg: access level must be the same or weaker
--FILE--
<?php
class test1 {
2020-02-03 21:52:20 +00:00
protected $var;
2007-02-07 11:10:32 +00:00
}
2018-09-16 17:16:42 +00:00
class test extends test1 {
2020-02-03 21:52:20 +00:00
private $var;
2007-02-07 11:10:32 +00:00
}
echo "Done\n";
?>
2018-09-16 17:16:42 +00:00
--EXPECTF--
2007-02-07 11:10:32 +00:00
Fatal error: Access level to test::$var must be protected (as in class test1) or weaker in %s on line %d