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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
8 + 9 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 16:01:29 2024 UTC