mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
18 lines
311 B
PHP
18 lines
311 B
PHP
--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
|