php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11500 imap_header imap_fetchstructure can't return any value when ...
Submitted: 2001-06-15 06:05 UTC Modified: 2001-07-22 13:15 UTC
From: lidongsheng2001 at hotmail dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4pl1 OS: linux 7.0
Private report: No CVE-ID: None
 [2001-06-15 06:05 UTC] lidongsheng2001 at hotmail dot com
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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-15 10:06 UTC] sniper@php.net
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.


 [2001-07-22 13:15 UTC] andy@php.net
no feedback after 35+ days.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 09:01:28 2024 UTC