php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5738 arrays doesn't keep track of number of objects in it.
Submitted: 2000-07-22 20:27 UTC Modified: 2000-07-22 21:16 UTC
From: rogjo501 at student dot liu dot se Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
 [2000-07-22 20:27 UTC] rogjo501 at student dot liu dot se
When adding class-objects to an array the array doesn't seem to keep track of how many it has.

Like if I add 10 objects to the array and then do a 
count(array);

It says 1 item.
This is a bit annoying since I can't use the sorting functions on it either.

// Roger Johannesson

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-22 21:16 UTC] mrobinso at cvs dot php dot net
Closed per user request.
Will reopen if reproduceable.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 00:03:19 2022 UTC