ID: 11604 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.5 Assigned To: Comments: 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 http://bugs.php.net/?id=11604&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]