Lines Matching refs:imap_close

2 Test imap_close() function : usage variations - different data types as $options arg
9 /* Prototype : bool imap_close(resource $stream_id [, int $options])
15 * Pass different data types as $options argument to test behaviour of imap_close()
18 echo "*** Testing imap_close() : usage variations ***\n";
78 // loop through each element of $inputs to check the behavior of imap_close()
87 var_dump( $check = imap_close($stream_id, $input) );
89 // check that imap_close was successful, if not call imap_close and explicitly set CL_EXPUNGE
91 imap_close($stream_id, CL_EXPUNGE);
93 // if imap_close was successful test whether CL_EXPUNGE was set by doing a message count
101 // call imap_close with CL_EXPUNGE explicitly set in case mailbox not empty
102 imap_close($imap_stream, CL_EXPUNGE);
119 *** Testing imap_close() : usage variations ***
129 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
138 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
143 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
148 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
153 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
174 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
183 Warning: imap_close(): invalid value for the flags parameter in %s on line %d
192 Warning: imap_close() expects parameter 2 to be integer, string given in %s on line %d
198 Warning: imap_close() expects parameter 2 to be integer, string given in %s on line %d
204 Warning: imap_close() expects parameter 2 to be integer, array given in %s on line %d