Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.4

Bug #3416 PHP5 Protected and private attributes not shown
Submitted: 2005-02-09 10:24 UTC Modified: 2007-01-15 02:28 UTC
From: fredericpoeydomenge Assigned: fredericpoeydomenge
Status: Closed Package: Var_Dump
PHP Version: 5.0.3 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-02-09 10:24 UTC] fredericpoeydomenge
Description: ------------ When dumping PHP5 objects, protected and private attributes are not shown. Reproduce code: --------------- class foo { public $bar1 = 'value1'; protected $bar2 = 'value2'; private $bar3 = 'value3'; } Var_Dump::display(new foo); Expected result: ---------------- object(foo)#3 (3) { bar1 => string(6) value1 bar2:protected => string(6) value2 bar3:private => string(6) value3 } Actual result: -------------- object(foo)#3 (3) { bar1 => string(6) value1 bar2:protected => string(6) bar3:private => string(6) }

Comments

 [2005-02-09 11:18 UTC] fredericpoeydomenge
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Var_Dump