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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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: Sun May 19 00:01:33 2024 UTC