|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-03-20 12:53 UTC] mark dot booker at gmail dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-20 17:56 UTC]
Please try using this CVS snapshot:
For Windows:

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 15:01:34 2024 UTC