Bug #4004: imap_errors() says it returns Array. I find String using gettype() on result.
| From: | rdoust at home dot com | Date: | Sat, 01 Apr 2000 22:15:03 +0000 |
| Subject: | Bug #4004: imap_errors() says it returns Array. I find String using gettype() on result. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17520@lists.php.net to get a copy of this message | ||
From: rdoust@home.com
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?