ID: 11604
Updated by: hholzgra
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.5
Assigned To: 

you should use is_array() for argument type checking
*before* calling count() or sizeof()

Previous Comments:

[2001-06-21 11:17:33] [EMAIL PROTECTED]
count($var) can return 0 if $var is not set and 1 if $var is not an array. 

In my view these overlap with proper return values - I can have an empty array and I 
can have an array with only 1 element. Actually, I often do.

Please make count($var) return -1 and -2 in these cases so I can reliably determine 
what's the situation with $var.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to