print_r, var_dump and private properties in PHP5

From: Date: Tue, 24 Jan 2006 21:47:23 +0000
Subject: print_r, var_dump and private properties in PHP5
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371732@lists.php.net to get a copy of this message
Hello there, http://us3.php.net/manual/en/function.print-r.php states: print_r() and var_export() will also show protected and private properties of objects with PHP 5. The German translation goes even a bit further and says: print_r() und var_export() zeigen mit PHP 5 auch private und geschützte Eigenschaften von Objekten an, im Gegensatz zur Funktion var_dump(). ( last sentence =unlike the function var_dump()) http://us3.php.net/manual/de/function.print-r.php Is this a documentation "bug" (as it implies that var_dump should not put out all private properties) or is this a bug in var_dump()? And is there then a method to dump only public properties in PHP5? Greetings, Florian

« previous php.doc (#969371732) next »