--TEST-- get_object_vars(): visibility from non static methods (target object passed as arg) --FILE-- testB($b); echo "\n---( Superclass: )---\n"; $b->testA($b); ?> --EXPECTF-- ---( Declaring class: )--- B::testB array(4) { ["hiddenPriv"]=> string(13) "B::hiddenPriv" ["priv"]=> string(7) "B::priv" ["prot"]=> string(7) "B::prot" ["pub"]=> string(6) "B::pub" } ---( Superclass: )--- A::testA array(3) { ["prot"]=> string(7) "B::prot" ["pub"]=> string(6) "B::pub" ["hiddenPriv"]=> string(13) "A::hiddenPriv" }