php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40910 var_dump() abbreviates array output
Submitted: 2007-03-24 18:15 UTC Modified: 2007-03-25 01:35 UTC
From: meyermagic at gmail dot com Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 5CVS-2007-03-24 (snap) OS: MS Windows XP Pro, SP2, 5.1.2600
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: meyermagic at gmail dot com
New email:
PHP Version: OS:

 

 [2007-03-24 18:15 UTC] meyermagic at gmail dot com
Description:
------------
Configure Command 	cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"

error_reporting  =  E_ALL|E_STRICT
log_errors = On
register_long_arrays = Off
register_argc_argv = Off
magic_quotes_gpc = Off
extension_dir = "C:\PHP\ext"

extension=php_imagick.dll
extension=php_xdebug.dll

date.timezone =America/Los_Angeles

var_dump seems to cut off array output on the fourth internal array.

Reproduce code:
---------------
<?php
       var_dump(array(array(array(array(array(1))))));
?>

Expected result:
----------------
array
 0 =>
   array
     0 =>
       array
         0 =>
           array
             0 =>
               array
                 0 => int 1

Actual result:
--------------
array
 0 =>
   array
     0 =>
       array
         0 =>
           array
             ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-24 18:29 UTC] bjori@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.


 [2007-03-25 01:35 UTC] derick@php.net
This is an Xdebug feature, use the xdebug.var_display_max_depth setting to something higher than 4.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 13:01:36 2025 UTC