Lines Matching refs:imap_close
2 Test imap_close() function : usage variations - different ints as $flags arg
10 * Pass different integers as $flags arg to imap_close() to test which are
14 echo "*** Testing imap_close() : usage variations ***\n";
22 // loop through each element of $inputs to check the behavior of imap_close()
32 var_dump( $check = imap_close($stream_id, $input) );
38 // check that imap_close was successful, if not call imap_close and explicitly set CL_EXPUNGE
40 imap_close($stream_id, CL_EXPUNGE);
42 // if imap_close was successful test whether CL_EXPUNGE was set by doing a message count
50 // call imap_close with CL_EXPUNGE explicitly set in case mailbox not empty
51 imap_close($imap_stream, CL_EXPUNGE);
67 *** Testing imap_close() : usage variations ***
80 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0
83 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0
86 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0