[PHP-DEV] Bug #4004: imap_errors() says it returns Array. I find String using gettype() on result. From: rdoust <email protected>
Date: 04/01/00

From: rdoust <email protected>
Operating system: WinNT 4.0
PHP version: 3.0.15
PHP Bug Type: Documentation problem
Bug description: imap_errors() says it returns Array. I find String using gettype() on result.

$errs = imap_errors();
if ( count( $errs ) > 0 )
    printf( "$errs[0] );

This produces an error entry in my PHP log that the parameter I'm sending to count is not an array. I later try gettype() on $errs and I'm told it's a String. I print it's value and it's empty. Does this mean that I have no errors?

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>