1--TEST--
2get_class_vars(): Testing the scope
3--FILE--
4<?php
5
6class A {
7    public $a = 1;
8    private $b = 2;
9    private $c = 3;
10}
11
12class B extends A {
13    static public $aa = 4;
14    static private $bb = 5;
15    static protected $cc = 6;
16
17    protected function __construct() {
18        var_dump(get_class_vars('C'));
19    }
20}
21
22class C extends B {
23    public $aaa = 7;
24    private $bbb = 8;
25    protected $ccc = 9;
26
27    public function __construct() {
28        parent::__construct();
29    }
30}
31
32new C;
33
34?>
35--EXPECT--
36array(6) {
37  ["aaa"]=>
38  int(7)
39  ["ccc"]=>
40  int(9)
41  ["a"]=>
42  int(1)
43  ["aa"]=>
44  int(4)
45  ["bb"]=>
46  int(5)
47  ["cc"]=>
48  int(6)
49}
50