--TEST-- get_class_vars(): Testing the scope --FILE-- a, $this->b, $this->c); } } new C; ?> --EXPECTF-- array(1) { ["a"]=> int(1) } array(3) { ["a"]=> int(1) ["aa"]=> int(4) ["cc"]=> int(6) } Warning: Undefined property: C::$b in %s on line %d Warning: Undefined property: C::$c in %s on line %d int(1) NULL NULL