Home
last modified time | relevance | path

Searched refs:imap_fetchbody (Results 1 – 7 of 7) sorted by relevance

/PHP-7.4/ext/imap/tests/
H A Dimap_fetchbody_error.phpt2 Test imap_fetchbody() function : error conditions - incorrect number of args
9 /* Prototype :string imap_fetchbody(resource $stream_id, int $msg_no, string $section
16 * Pass an incorrect number of arguments to imap_fetchbody() to test behaviour
19 echo "*** Testing imap_fetchbody() : error conditions ***\n";
22 //Test imap_fetchbody with one more than the expected number of arguments
31 var_dump( imap_fetchbody($stream_id, $msg_no, $section, $options, $extra_arg) );
33 // Testing imap_fetchbody with one less than the expected number of arguments
36 var_dump( imap_fetchbody($stream_id, $msg_no) );
44 *** Testing imap_fetchbody() : error conditions ***
46 -- Testing imap_fetchbody() function with more than expected no. of arguments --
[all …]
H A Dimap_fetchbody_variation5.phpt2 Test imap_fetchbody() function : usage variation - different resources as $stream_id arg
9 /* Prototype : string imap_fetchbody(resource $stream_id, int $msg_no, string $section
16 * Pass different resource types to imap_fetchbody() to test behaviour
19 echo "*** Testing imap_fetchbody() : usage variations ***\n";
23 var_dump(imap_fetchbody($file_pointer, 1));
28 var_dump(imap_fetchbody($dir_handle, 1));
33 *** Testing imap_fetchbody() : usage variations ***
38 Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d
44 Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d
H A Dimap_fetchbody_basic.phpt2 Test imap_fetchbody() function : basic functionality
9 /* Prototype : string imap_fetchbody(resource $stream_id, int $msg_no, string $section
15 echo "*** Testing imap_fetchbody() : basic functionality ***\n";
27 // Calling imap_fetchbody() with all possible arguments
35 var_dump( imap_fetchbody($stream_id, $msg_uid, $section, $option) );
39 var_dump( imap_fetchbody($stream_id, $msg_no, $section, $option) );
46 var_dump( imap_fetchbody($stream_id, $msg_no, $section, $option) );
52 // Calling imap_fetchbody() with mandatory arguments
54 var_dump( imap_fetchbody($stream_id, $msg_no, $section) );
65 *** Testing imap_fetchbody() : basic functionality ***
H A Dimap_fetchbody_variation6.phpt2 Test imap_fetchbody() function : usage variations - $msg_no arg
9 /* Prototype : string imap_fetchbody(resource $stream_id, int $msg_no, string $section [, int $opt…
16 * to test behaviour of imap_fetchbody()
19 echo "*** Testing imap_fetchbody() : usage variations ***\n";
33 var_dump($overview = imap_fetchbody($stream_id, $msg_no, $section));
45 *** Testing imap_fetchbody() : usage variations ***
51 Warning: imap_fetchbody(): Bad message number in %s on line %d
57 Warning: imap_fetchbody(): Bad message number in %s on line %d
H A Dimap_fetchbody_variation4.phpt2 Test imap_fetchbody() function : usage variations - FT_UID option
9 /* Prototype : string imap_fetchbody(resource $stream_id, int $msg_no, string $section [, int $opt…
15 * Test if FT_UID is set by passing the following as $options argument to imap_fetchbody():
19 echo "*** Testing imap_fetchbody() : usage variations ***\n";
39 if(is_string(imap_fetchbody($stream_id, $msg_uid, $section, $option))) {
54 *** Testing imap_fetchbody() : usage variations ***
72 Warning: imap_fetchbody(): invalid value for the options parameter in %s on line %d
77 Warning: imap_fetchbody(): invalid value for the options parameter in %s on line %d
/PHP-7.4/ext/imap/
H A Dphp_imap.h131 PHP_FUNCTION(imap_fetchbody);
H A Dphp_imap.c483 PHP_FE(imap_fetchbody, arginfo_imap_fetchbody)
2407 PHP_FUNCTION(imap_fetchbody) in PHP_FUNCTION() argument

Completed in 18 milliseconds