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 15:24 UTC
From: fredericpoeydomenge Assigned: fredericpoeydomenge
Status: Closed Package: Var_Dump
PHP Version: 5.0.3 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 12 - 5 = ?

 
 [2005-02-09 15: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 16: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