Lines Matching refs:imap_close
2 Test imap_close() function : usage variations - different ints as $flags arg
12 * Pass different integers as $flags arg to imap_close() to test which are
16 echo "*** Testing imap_close() : usage variations ***\n";
24 // loop through each element of $inputs to check the behavior of imap_close()
34 var_dump( $check = imap_close($stream_id, $input) );
40 // check that imap_close was successful, if not call imap_close and explicitly set CL_EXPUNGE
42 imap_close($stream_id, CL_EXPUNGE);
44 // if imap_close was successful test whether CL_EXPUNGE was set by doing a message count
52 // call imap_close with CL_EXPUNGE explicitly set in case mailbox not empty
53 imap_close($imap_stream, CL_EXPUNGE);
69 *** Testing imap_close() : usage variations ***
82 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0
85 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0
88 imap_close(): Argument #2 ($flags) must be CL_EXPUNGE or 0