ID:               46701
 User updated by:  testuzer at hotmail dot com
-Summary:          Incorrect array data, but work coreectly on Windows
 Reported By:      testuzer at hotmail dot com
 Status:           Open
 Bug Type:         Arrays related
 Operating System: Linux - ubuntu
 PHP Version:      5.2.6
 New Comment:

.


Previous Comments:
------------------------------------------------------------------------

[2008-11-27 21:04:17] testuzer at hotmail dot com

Description:
------------
Creating associative array with long values in the key fails under
linux builds but work under windows.

Reproduce code:
---------------
$test_array = array(
  0xcc5c4600 => 1,
  0xce331a00 => 1,
  0xce359000 => 1,
  );

print_r( $test_array ); 


Expected result:
----------------
Array
(
    [-866368000] => 1
    [-835511808] => 1
    [-835350528] => 1
)


Actual result:
--------------
Array
(
    [-2147483648] => 1
)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46701&edit=1

Reply via email to