From:             dennis at born05 dot nl
Operating system: Fedora Core 6
PHP version:      5.2.8
PHP Bug Type:     SPL related
Bug description:  var_export doesn't show numeric indices on ArrayObject

Description:
------------
When invoking var_export on an ArrayObject instance it doesn't show 
the numeric indices.

Reproduce code:
---------------
$ao = new ArrayObject(array (2 => "foo", "bar" => "baz"));
var_export ($ao);

Expected result:
----------------
ArrayObject::__set_state(array(
   2 => 'foo',
   'bar' => 'baz',
))

Actual result:
--------------
ArrayObject::__set_state(array(
   'bar' => 'baz',
))

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

Reply via email to