]> granicus.if.org Git - php/commit
var_dump() now shows private and protected member variables.
authorAndrey Hristov <andrey@php.net>
Thu, 20 May 2004 17:46:20 +0000 (17:46 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 20 May 2004 17:46:20 +0000 (17:46 +0000)
commitaafb2b158153233cf1c88cc992e8389d1cee6015
treecbbb21f92a69a12aae399ae6671525162d0b4056
parent38eb52b8a7db2a88c4baaeeaf68ef09f64a7cd49
var_dump() now shows private and protected member variables.
Not BC is that since now the public variables are explicitly shown as public
Example :

class a{ protected $a=1; private $b=2;var $c=3;} $a=new a(); var_dump($a);

object(a)#1 (3) {
  ["a:protected"]=>
  int(1)
  ["b:private"]=>
  int(2)
  ["c:public"]=>
  int(3)
}
ext/standard/var.c