php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40025 array_chunk on 64 bits machine problem
Submitted: 2007-01-04 18:20 UTC Modified: 2007-01-11 09:53 UTC
From: mhaza at multipack dot com dot mx Assigned:
Status: Wont fix Package: Arrays related
PHP Version: 4.4.4 OS: Solaris 10/6
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: mhaza at multipack dot com dot mx
New email:
PHP Version: OS:

 

 [2007-01-04 18:20 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-11 09:53 UTC] tony2001@php.net
Unfortunately, it's not possible to change this without breaking binary compatibility, so you'll have to upgrade to PHP5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC