Lines Matching refs:imap_close
2 Test imap_close() function : usage variations - different ints as $options arg
9 /* Prototype : bool imap_close(resource $stream_id [, int $options])
15 * Pass different integers as $options arg to imap_close() to test which are
19 echo "*** Testing imap_close() : usage variations ***\n";
27 // loop through each element of $inputs to check the behavior of imap_close()
36 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 ***
81 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
86 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
91 Warning: imap_close(): invalid value for the flags parameter in %s on line %d