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 = '[EMAIL PROTECTED]';
$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 http://bugs.php.net/?id=40513&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40513&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40513&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40513&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40513&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40513&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40513&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40513&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40513&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40513&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40513&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40513&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40513&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40513&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40513&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40513&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40513&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40513&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40513&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40513&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40513&r=mysqlcfg