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

Bug #1321 Numeric zero values in array or object attributes are not shown.
Submitted: 2004-04-30 15:34 UTC
From: llucax Assigned: fredericpoeydomenge
Status: Closed Package: Var_Dump
PHP Version: 4.3.4 OS: Debian GNU/Linux sid (k 2.6.5)
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 : 26 + 35 = ?

 
 [2004-04-30 15:34 UTC] llucax
Description: ------------ In Var_Dump version 0.9.0 and 0.9.1 if an object or an array has numeric variables (int and float) with zero, the value is not shown. Reproduce code: --------------- <?php require_once 'Var_Dump.php'; class a { var $i = 0; var $f = 0.0; } Var_Dump::display(new a); Var_Dump::display(array(0, 0.0)); ?> Expected result: ---------------- object(a)(2) { i => int 0 f => float 0 } array(2) { 0 => int 0 1 => float 0 } Actual result: -------------- object(a)(2) { i => int f => float } array(2) { 0 => int 1 => float }

Comments

 [2004-05-04 09:12 UTC] frederic dot poeydomenge at free dot fr
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/packages.php It is fixed in v0.9.3, thanks for helping the debugging of this package with your bug report !