1--TEST--
2get_class_vars(): Testing visibility
3--FILE--
4<?php
5
6class A {
7    protected $a = 1;
8    private $b = 2;
9}
10
11class B extends A {
12    private $c = 3;
13    public function __construct() {
14        var_dump(get_class_vars('A'));
15        var_dump(get_class_vars('B'));
16    }
17}
18
19var_dump(get_class_vars('A'));
20var_dump(get_class_vars('B'));
21
22new B;
23
24?>
25--EXPECT--
26array(0) {
27}
28array(0) {
29}
30array(1) {
31  ["a"]=>
32  int(1)
33}
34array(2) {
35  ["c"]=>
36  int(3)
37  ["a"]=>
38  int(1)
39}
40