summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_023.phpt
blob: 9fd7804ea461d22a0cd3493bdaa2b25f6791ae14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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