xref: /PHP-8.2/Zend/tests/bug30451.phpt (revision f8d79582)
1--TEST--
2Bug #30451 (static properties permissions broken)
3--FILE--
4<?php
5
6class A {
7
8    protected static $property = TRUE;
9
10    protected static function method() {
11        return TRUE;
12    }
13
14}
15
16class B extends A {
17
18    public function __construct() {
19
20        var_dump(self::method());
21        var_dump(parent::method());
22
23        var_dump(self::$property);
24        var_dump(parent::$property);
25
26    }
27
28}
29
30new B;
31?>
32--EXPECT--
33bool(true)
34bool(true)
35bool(true)
36bool(true)
37