1--TEST-- 2get_object_vars() on ArrayObject works on the properties of the ArrayObject itself 3--FILE-- 4<?php 5 6class Test { 7 public $test; 8 public $test2; 9} 10 11class AO extends ArrayObject { 12 private $test; 13 14 public function getObjectVars() { 15 return get_object_vars($this); 16 } 17} 18 19$ao = new AO(new Test); 20var_dump(get_object_vars($ao)); 21var_dump($ao->getObjectVars()); 22 23?> 24--EXPECT-- 25array(0) { 26} 27array(1) { 28 ["test"]=> 29 NULL 30} 31