From:             mark at runryder dot com
Operating system: Linux 2.6.11.4-21.14-bigsmp
PHP version:      5CVS-2006-10-25 (snap)
PHP Bug Type:     IMAP related
Bug description:  imap_delete argument is not a valid imap resource

Description:
------------
I have over a man week invested trouble shooting this with no luck. Now
using the latest of everything. 

Works:
$mBox=imap_open('{localhost:143}INBOX','username','password',CL_EXPUNGE);
Works: $check=imap_check($mBox);
Works: $header=imap_fetchheader($mBox,1);
Error: imap_delete($mbox,1);
Error: imap_close($mbox);

Error: [25-Oct-2006 16:27:04] PHP Warning:  imap_delete(): supplied
argument is not a valid imap resource in /rr1/lib/readMail.dat on line 6
Error: [25-Oct-2006 16:27:04] PHP Warning:  imap_close(): supplied
argument is not a valid imap resource in /rr1/lib/readMail.dat on line 7

wget http://snaps.php.net/php5.2-200610251830.tar.bz2

Configure Command  './configure'
'--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--without-sqlite'
'--enable-mbstring' '--without-pear' '--with-zlib' '--with-gd'
'--with-jpeg-dir=/usr/lib/' '--with-png-dir=/usr/lib/'
'--with-freetype-dir=/usr/lib/' '--enable-gd-native-ttf'
'--with-imap=/usr/local/imap-2006c/' '--with-imap-ssl'


Reproduce code:
---------------
<%
$mBox=imap_open('{localhost:143}INBOX','username','password',CL_EXPUNGE);
$check=imap_check($mBox);
$header=imap_fetchheader($mBox,1);
$delete=imap_delete($mbox,1);
$close=imap_close($mbox);
%>


Expected result:
----------------
Message 1 deleted

Actual result:
--------------
Nothing except the error:

Error: [25-Oct-2006 16:27:04] PHP Warning:  imap_delete(): supplied
argument is not a valid imap resource in /rr1/lib/readMail.dat on line 6


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

Reply via email to