File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug30451.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Bug #30451 (static properties permissions broken)
3: --FILE--
4: <?php
5:
6: class A {
7:
8: protected static $property = TRUE;
9:
10: protected static function method() {
11: return TRUE;
12: }
13:
14: }
15:
16: class 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:
30: new B;
31: ?>
32: --EXPECT--
33: bool(true)
34: bool(true)
35: bool(true)
36: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>