mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
18 lines
210 B
PHP
18 lines
210 B
PHP
--TEST--
|
|
No more errmsg: can now change initial value of property
|
|
--FILE--
|
|
<?php
|
|
|
|
class test1 {
|
|
static protected $var = 1;
|
|
}
|
|
|
|
class test extends test1 {
|
|
static $var = 10;
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
Done
|