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
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: 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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 18:01:31 2024 UTC