#39259 [Bgs]: imap_delete argument is not a valid imap resource

2006-10-26 Thread mark at runryder dot com
 ID:   39259
 User updated by:  mark at runryder dot com
 Reported By:  mark at runryder dot com
 Status:   Bogus
 Bug Type: IMAP related
 Operating System: Linux 2.6.11.4-21.14-bigsmp
 PHP Version:  5CVS-2006-10-25 (snap)
 New Comment:

How embarrassing for my first bug report.
Thanks for pointing out that I do not equal. :)
== Case Closed ==


Previous Comments:


[2006-10-26 09:14:59] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

$mBox=imap_open(..);
$close=imap_close($mbox);

$mbox != $mBox



[2006-10-26 00:29:43] mark at runryder dot com

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 this bug report at http://bugs.php.net/?id=39259&edit=1


#39259 [NEW]: imap_delete argument is not a valid imap resource

2006-10-25 Thread mark at runryder dot com
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