--TEST-- ReflectionObject::__toString (filtering privates/protected dynamic properties) --SKIPIF-- --FILE-- z = 4; $x->p3 = 5; $obj = new ReflectionObject($x); echo $obj; ?> --EXPECTF-- Object of class [ class C1 ] { @@ %s024.php 2-6 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [3] { Property [ private $p1 ] Property [ protected $p2 ] Property [ public $p3 ] } - Dynamic properties [1] { Property [ public $z ] } - Methods [0] { } }