Bug #1348 Updated: count() can't identify a non-array variable correctly
| From: | Bug Database | Date: | Sat, 24 Apr 1999 21:01:39 +0000 |
| Subject: | Bug #1348 Updated: count() can't identify a non-array variable correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5251@lists.php.net to get a copy of this message | ||
ID: 1348
Updated by: rasmus
Reported By: mike24@bellsouth.net
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
I don't see how 1 is inaccurate. Think of a variable as a 1-element array. count() was never
designed to distinguish between arrays and variables. It was simply designed to tell you how many
elements something contains. Having it return -1 would be counter-intuitive.
Full Bug description available at: http://bugs.php.net?id=1348
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net