summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30451.phpt
blob: 5e9696f128320a83af0c17786dcb424b3959d3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--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)