blob: d8d06cbce17a9bbfa9d6fb1fccd019b23e325853 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
errmsg: cannot change initial value of property
--FILE--
<?php
class test1 {
static protected $var = 1;
}
class test extends test1 {
static $var = 10;
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot change initial value of property static protected test1::$var in class test in %s on line %d
|