--TEST-- Bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables) --FILE-- test(); echo "\n From child scope\n"; $child = new Child(); $child->test(); ?> --EXPECT-- From parent scope array(1) { ["prot"]=> string(13) "protected var" } string(13) "protected var" From child scope array(1) { ["prot"]=> string(13) "protected var" }