mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
37 lines
437 B
PHP
37 lines
437 B
PHP
--TEST--
|
|
Bug #30451 (static properties permissions broken)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
|
|
protected static $property = TRUE;
|
|
|
|
protected static function method() {
|
|
return TRUE;
|
|
}
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
public function __construct() {
|
|
|
|
var_dump(self::method());
|
|
var_dump(parent::method());
|
|
|
|
var_dump(self::$property);
|
|
var_dump(parent::$property);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
new B;
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|