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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lidongsheng2001 at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC