php-src/Zend/tests/errmsg_024.phpt
2007-02-07 11:10:32 +00:00

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