php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32383 count() hits 4796 maximum count
Submitted: 2005-03-20 12:53 UTC Modified: 2005-04-01 01:00 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mark dot booker at gmail dot com Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 5.0.3 OS: Windows Server 2003 Ent. Edt.
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mark dot booker at gmail dot com
New email:
PHP Version: OS:

 

 [2005-03-20 12:53 UTC] mark dot booker at gmail dot com
Description:
------------
Using count() on an array that has more than 4796 elements, count returns 4796, other functions such as print_r() show all elements and the foreach() command also goes beyond the 4796 limit.

Reproduce code:
---------------
$i=single dimension array with 4830 elements

print count($i);

Expected result:
----------------
4830 printed on screen

Actual result:
--------------
4796 printed on screen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-20 17:56 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

I can not reproduce this.

 [2005-04-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sat Nov 17 03:01:25 2018 UTC