From:             
Operating system: ubuntu 9.10 x86
PHP version:      Irrelevant
Package:          *General Issues
Bug Type:         Bug
Bug description:var_export makes -1 in key of array 4294967295

Description:
------------
var_export makes -1 in key of array 4294967295


i have to set version to irrelevant, but i do not know whether it is indeed
irrelevant, i think i cannot upgrade. php version is
5.2.10.dfsg.1-2ubuntu6.3

Test script:
---------------
$a=array('-1'=>100);

var_export($a);

echo '<br>';

print_r ($a);
echo '<br>';

var_dump($a);

Expected result:
----------------
it should return '-1' or -1 in place of the key

Actual result:
--------------
it returns 4294967295 (instead of -1)

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

Reply via email to