From:             
Operating system: All
PHP version:      5.3.6
Package:          Variables related
Bug Type:         Feature/Change Request
Bug description:var_dump truncates values with no option to output all values

Description:
------------
Simple as that... after var_dump() decides "enough is enough", it just
arbitrarily 

cuts off the rest of the value with ellipses.



Seriously annoying when trying to debug a script (the only time I use
var_dump - 

what other purpose does it serve in production?)... it produces a nice HTML


output, but 

Test script:
---------------
$test = array('foo');

$test['foo'] = array('bar');

$test['foo']['this'] = array('that');

$test['foo']['this']['where'] = array('there');

$test['foo']['this']['where']['your'] = array('face');

$test['foo']['this']['where']['your']['mom'] = array('fat');



var_dump($test);

Expected result:
----------------
<pre class='xdebug-var-dump' dir='ltr'>

<b>array</b>

  0 <font color='#888a85'>=&gt;</font> <small>string</small> <font 

color='#cc0000'>'foo'</font> <i>(length=3)</i>

  'foo' <font color='#888a85'>=&gt;</font> 

    <b>array</b>

      0 <font color='#888a85'>=&gt;</font> <small>string</small> <font 

color='#cc0000'>'bar'</font> <i>(length=3)</i>

      'this' <font color='#888a85'>=&gt;</font> 

        <b>array</b>

          0 <font color='#888a85'>=&gt;</font> <small>string</small> <font


color='#cc0000'>'that'</font> <i>(length=4)</i>

          'where' <font color='#888a85'>=&gt;</font> 

            <b>array</b>

              0 <font color='#888a85'>=&gt;</font> <small>string</small>
<font 

color='#cc0000'>'there'</font> <i>(length=5)</i>

              'your' <font color='#888a85'>=&gt;</font> 

                <b>array</b>

                  0 <font color='#888a85'>=&gt;</font>
<small>string</small> 

<font color='#cc0000'>'face'</font> <i>(length=4)</i>

                  'mom' <font color='#888a85'>=&gt;</font> 

                    <b>array</b>

                      0 <font color='#888a85'>=&gt;</font>
<small>string</small> 

<font color='#cc0000'>'fat'</font> <i>(length=3)</i>

</pre>

Actual result:
--------------
<pre class='xdebug-var-dump' dir='ltr'>

<b>array</b>

  0 <font color='#888a85'>=&gt;</font> <small>string</small> <font 

color='#cc0000'>'foo'</font> <i>(length=3)</i>

  'foo' <font color='#888a85'>=&gt;</font> 

    <b>array</b>

      0 <font color='#888a85'>=&gt;</font> <small>string</small> <font 

color='#cc0000'>'bar'</font> <i>(length=3)</i>

      'this' <font color='#888a85'>=&gt;</font> 

        <b>array</b>

          0 <font color='#888a85'>=&gt;</font> <small>string</small> <font


color='#cc0000'>'that'</font> <i>(length=4)</i>

          'where' <font color='#888a85'>=&gt;</font> 

            <b>array</b>

              ...

</pre>

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54302&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54302&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54302&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54302&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54302&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54302&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54302&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54302&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54302&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54302&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54302&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54302&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54302&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54302&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54302&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54302&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54302&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54302&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54302&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54302&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54302&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54302&r=mysqlcfg

Reply via email to