[PHP-DEV] Bug #11500 Updated: imap_header imap_fetchstructure can't return any value when ... From: sniper <email protected>
Date: 06/15/01

ID: 11500
Updated by: sniper
Reported By: lidongsheng2001 <email protected>
Old-Status: Open
Status: Feedback
Bug Type: IMAP related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:

It's most likely the connection that dies.
Try adding some check for that into the script.
Also try adding sleep(1); before the imap_fetchstructure().
This might be some timing issue. Also check what your
imap servers logs have got about this.

Previous Comments:
---------------------------------------------------------------------------

[2001-06-15 06:05:28] lidongsheng2001 <email protected>
Imap_fetchstructure can't return values when a script includes a cycle ,for example 'while' getting parameters from mailbox using imap_fetchstructure.
example:

   while($i<300)
       ...
    $partinfo=imap_fetchstructure($mailstream,$i);
      ...
    When $i is large than certain number such as 200 but variable by different users and other situation,$partinfo return null array.
 

I hope that you will do me a favour!

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11500&edit=2

-- 
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>