|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-26 09:14 UTC] tony2001@php.net
[2006-10-26 17:04 UTC] mark at runryder dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 19:00:01 2025 UTC |
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