mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
18 lines
311 B
Plaintext
18 lines
311 B
Plaintext
|
--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
|