#40025 [Opn->WFx]: array_chunk on 64 bits machine problem

From: Date: Thu, 11 Jan 2007 09:53:38 +0000
Subject: #40025 [Opn->WFx]: array_chunk on 64 bits machine problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107461@lists.php.net to get a copy of this message
ID: 40025 Updated by: tony2001@php.net Reported By: mhaza at multipack dot com dot mx -Status: Open +Status: Wont fix Bug Type: Arrays related Operating System: Solaris 10/6 PHP Version: 4.4.4 New Comment: Unfortunately, it's not possible to change this without breaking binary compatibility, so you'll have to upgrade to PHP5. Previous Comments: ------------------------------------------------------------------------ [2007-01-04 18:20:04] mhaza at multipack dot com dot mx Description: ------------ On Solaris 10/6 using PHP444 compiled with gcc 343 on 64 bits array_chunk returns invalid keys Compiled with apache1337 Modules: OCI, GD2, dbase, ftp, curl, mysql, imap, mcrypt, bcmath Reproduce code: --------------- Using the array_chunk for an array like this: Array ( [716700032303] => 04000763955 [716700036542] => 04000952020 [716700039266] => 04001082702 [716700039351] => 04001084112 [716700039417] => 04001176488 [716700039645] => 04001178955 Expected result: ---------------- Array ( [0] => Array ( [716700032303] => 04000763955 [716700036542] => 04000952020 [716700039266] => 04001082702 [716700039351] => 04001084112 [716700039417] => 04001176488 [716700039645] => 04001178955 Actual result: -------------- Array ( [0] => Array ( [3735461167] => 04000763955 [3735465406] => 04000952020 [3735468130] => 04001082702 [3735468215] => 04001084112 [3735468281] => 04001176488 [3735468509] => 04001178955 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40025&edit=1

« previous php.bugs (#107461) next »