#40513 [NEW]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40513 [NEW]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

    From: wil at codeciti dot com
    Operating system: WinXP
    PHP version: 5.2.1
    PHP Bug Type: IMAP related
    Bug description: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

    Description:
    ------------
    When I try to move mail from one directory to another I get that notice
    and on the mail server log it tells me that the command is invalid and
    ignores it.

    Notice: Notice: Unknown: List index out of bounds (0) (errflg=2) in
    Unknown on line 0

    Reproduce code:
    ---------------
    <?php

    $Prefix = 'codeciti.com';
    $Pass = 'xxxxxxxx'; <-- blanked for security
    $Email = 'wil@codeciti.com';
    $Mailserver = '{192.168.1.121:143}';
    $Mailbox = 'Inbox';

    $Link=imap_open($Mailserver.$Mailbox,$Email,$Pass) or die("can't connect:
    " . imap_last_error());

    $arr = array(0 => '1', 1 => '2', 2 => '3');

    $messageset = implode(',',$arr);

    imap_mail_move($Link, $messageset, 'Trash');

    imap_close($Link);

    ?>

    Expected result:
    ----------------
    Should move the mail from the current folder to the trash.

    Actual result:
    --------------
    Nothing gets moved it just echos that notice statement.

    --
    Edit bug report at [url]http://bugs.php.net/?id=40513&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40513&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40513&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40513&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40513&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40513&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40513&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40513&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40513&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40513&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40513&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40513&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40513&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40513&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40513&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40513&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40513&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40513&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40513&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40513&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40513&r=mysqlcfg[/url]
    wil at codeciti dot com Guest

  2. Similar Questions and Discussions

    1. #40068 [NEW]: Warning: Unknown: failed to open stream: No such file or directory in Unknown..
      From: triphius at tripslair dot com Operating system: FreeBSD 6.1 PHP version: 5.2.0 PHP Bug Type: Scripting Engine problem...
    2. #34667 [Com]: Notice: Unknown: Unable to find the wrapper "compress.bzip2".....
      ID: 34667 Comment by: saulovallory at yahoo dot com Reported By: webmaster at 24-99-92-156 dot no-ip dot com Status: ...
    3. #25195 [Com]: Failed opening phpinfo.php ... in Unknown on line 0
      ID: 25195 Comment by: jusdoit442 at yahoo dot com Reported By: mhawkins at ukeu dot com Status: Closed Bug...
    4. #25195 [Fbk->Csd]: Failed opening phpinfo.php ... in Unknown on line 0
      ID: 25195 User updated by: mhawkins at ukeu dot com Reported By: mhawkins at ukeu dot com -Status: Feedback...
    5. #24882 [Dup->Fbk]: Failed opening phpinfo.php ... in Unknown on line 0
      ID: 24882 Updated by: sniper@php.net Reported By: mhawkins at ukeu dot com -Status: Duplicate +Status: ...
  3. #2

    Default #40513 [Opn]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

    ID: 40513
    User updated by: wil at codeciti dot com
    Reported By: wil at codeciti dot com
    Status: Open
    Bug Type: IMAP related
    -Operating System: WinXP
    +Operating System: WinXP Pro
    PHP Version: 5.2.1
    New Comment:

    Changed it to winxp pro


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

    [2007-02-16 20:32:13] wil at codeciti dot com

    Description:
    ------------
    When I try to move mail from one directory to another I get that notice
    and on the mail server log it tells me that the command is invalid and
    ignores it.

    Notice: Notice: Unknown: List index out of bounds (0) (errflg=2) in
    Unknown on line 0

    Reproduce code:
    ---------------
    <?php

    $Prefix = 'codeciti.com';
    $Pass = 'xxxxxxxx'; <-- blanked for security
    $Email = 'wil@codeciti.com';
    $Mailserver = '{192.168.1.121:143}';
    $Mailbox = 'Inbox';

    $Link=imap_open($Mailserver.$Mailbox,$Email,$Pass) or die("can't
    connect: " . imap_last_error());

    $arr = array(0 => '1', 1 => '2', 2 => '3');

    $messageset = implode(',',$arr);

    imap_mail_move($Link, $messageset, 'Trash');

    imap_close($Link);

    ?>

    Expected result:
    ----------------
    Should move the mail from the current folder to the trash.

    Actual result:
    --------------
    Nothing gets moved it just echos that notice statement.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40513&edit=1[/url]
    wil at codeciti dot com Guest

  4. #3

    Default #40513 [Opn->Bgs]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

    ID: 40513
    Updated by: [email]tony2001@php.net[/email]
    Reported By: wil at codeciti dot com
    -Status: Open
    +Status: Bogus
    Bug Type: IMAP related
    -Operating System: WinXP Pro
    +Operating System: WinXP
    PHP Version: 5.2.1
    New Comment:

    The error messages you see are coming from c-client library.
    Unfortunately we can't fix and/or change it, since it's a third party
    library.


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

    [2007-02-16 23:27:18] wil at codeciti dot com

    Changed it to winxp pro

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

    [2007-02-16 20:32:13] wil at codeciti dot com

    Description:
    ------------
    When I try to move mail from one directory to another I get that notice
    and on the mail server log it tells me that the command is invalid and
    ignores it.

    Notice: Notice: Unknown: List index out of bounds (0) (errflg=2) in
    Unknown on line 0

    Reproduce code:
    ---------------
    <?php

    $Prefix = 'codeciti.com';
    $Pass = 'xxxxxxxx'; <-- blanked for security
    $Email = 'wil@codeciti.com';
    $Mailserver = '{192.168.1.121:143}';
    $Mailbox = 'Inbox';

    $Link=imap_open($Mailserver.$Mailbox,$Email,$Pass) or die("can't
    connect: " . imap_last_error());

    $arr = array(0 => '1', 1 => '2', 2 => '3');

    $messageset = implode(',',$arr);

    imap_mail_move($Link, $messageset, 'Trash');

    imap_close($Link);

    ?>

    Expected result:
    ----------------
    Should move the mail from the current folder to the trash.

    Actual result:
    --------------
    Nothing gets moved it just echos that notice statement.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40513&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139