Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.0
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
imap /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
README.md
1.25
KB
-rw-rw-r--
2022-10-31 11:36
bug31142_1.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
bug31142_2.phpt
700
B
-rw-rw-r--
2022-10-31 11:36
bug32589.phpt
753
B
-rw-rw-r--
2022-10-31 11:36
bug35669.phpt
2
KB
-rw-rw-r--
2022-10-31 11:36
bug40854.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
bug44098.phpt
400
B
-rw-rw-r--
2022-10-31 11:36
bug45705_1.phpt
431
B
-rw-rw-r--
2022-10-31 11:36
bug45705_2.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
bug46918.phpt
1.51
KB
-rw-rw-r--
2022-10-31 11:36
bug53377.phpt
712
B
-rw-rw-r--
2022-10-31 11:36
bug63126.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
bug64076.phpt
562
B
-rw-rw-r--
2022-10-31 11:36
bug75774.phpt
508
B
-rw-rw-r--
2022-10-31 11:36
bug77020.phpt
306
B
-rw-rw-r--
2022-10-31 11:36
bug77153.phpt
649
B
-rw-rw-r--
2022-10-31 11:36
bug80213.phpt
420
B
-rw-rw-r--
2022-10-31 11:36
bug80215.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
bug80216.phpt
498
B
-rw-rw-r--
2022-10-31 11:36
bug80220.phpt
604
B
-rw-rw-r--
2022-10-31 11:36
bug80223.phpt
432
B
-rw-rw-r--
2022-10-31 11:36
bug80226.phpt
278
B
-rw-rw-r--
2022-10-31 11:36
bug80242.phpt
422
B
-rw-rw-r--
2022-10-31 11:36
bug80710_1.phpt
1.18
KB
-rw-rw-r--
2022-10-31 11:36
bug80710_2.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
clean.inc
732
B
-rw-rw-r--
2022-10-31 11:36
imap_8bit_basic.phpt
1.03
KB
-rw-rw-r--
2022-10-31 11:36
imap_alerts_error.phpt
875
B
-rw-rw-r--
2022-10-31 11:36
imap_append_basic.phpt
2.1
KB
-rw-rw-r--
2022-10-31 11:36
imap_base64_basic.phpt
1.01
KB
-rw-rw-r--
2022-10-31 11:36
imap_binary_basic.phpt
1.86
KB
-rw-rw-r--
2022-10-31 11:36
imap_body.phpt
1.23
KB
-rw-rw-r--
2022-10-31 11:36
imap_body_basic.phpt
1.18
KB
-rw-rw-r--
2022-10-31 11:36
imap_bodystruct_basic.phpt
1.96
KB
-rw-rw-r--
2022-10-31 11:36
imap_clearflag_full_basic.phpt
2.5
KB
-rw-rw-r--
2022-10-31 11:36
imap_close_basic.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
imap_close_error.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
imap_close_variation3.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
imap_close_variation4.phpt
2.38
KB
-rw-rw-r--
2022-10-31 11:36
imap_createmailbox_basic.phpt
2.06
KB
-rw-rw-r--
2022-10-31 11:36
imap_errors_basic.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
imap_expunge_error.phpt
673
B
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_basic.phpt
1.87
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_error.phpt
1.76
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_variation3.phpt
2.12
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_variation4.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_variation5.phpt
2.33
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetch_overview_variation6.phpt
2.63
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchbody_basic.phpt
2.13
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchbody_error.phpt
1.68
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchbody_variation4.phpt
1.91
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchbody_variation5.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchbody_variation6.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchheader_basic.phpt
1.96
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchheader_error.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchheader_variation3.phpt
1.83
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchheader_variation4.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchheader_variation5.phpt
1.84
KB
-rw-rw-r--
2022-10-31 11:36
imap_fetchstructure_basic.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
imap_gc_error.phpt
918
B
-rw-rw-r--
2022-10-31 11:36
imap_getsubscribed_basic.phpt
1.63
KB
-rw-rw-r--
2022-10-31 11:36
imap_headerinfo_basic.phpt
2.15
KB
-rw-rw-r--
2022-10-31 11:36
imap_headerinfo_error.phpt
962
B
-rw-rw-r--
2022-10-31 11:36
imap_headers.phpt
652
B
-rw-rw-r--
2022-10-31 11:36
imap_include.inc
5.35
KB
-rw-rw-r--
2022-10-31 11:36
imap_list_basic.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
imap_lsub_basic.phpt
1.41
KB
-rw-rw-r--
2022-10-31 11:36
imap_mail_copy.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
imap_mail_copy_basic.phpt
1.13
KB
-rw-rw-r--
2022-10-31 11:36
imap_mail_move.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
imap_mail_move_basic.phpt
1.13
KB
-rw-rw-r--
2022-10-31 11:36
imap_mutf7_to_utf8.phpt
507
B
-rw-rw-r--
2022-10-31 11:36
imap_num_msg_error.phpt
652
B
-rw-rw-r--
2022-10-31 11:36
imap_num_recent_error.phpt
652
B
-rw-rw-r--
2022-10-31 11:36
imap_open_error.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
imap_ping_error.phpt
631
B
-rw-rw-r--
2022-10-31 11:36
imap_renamemailbox_basic.phpt
1.63
KB
-rw-rw-r--
2022-10-31 11:36
imap_rfc822_parse_headers_basic.phpt
1.98
KB
-rw-rw-r--
2022-10-31 11:36
imap_rfc822_write_address_basic.phpt
288
B
-rw-rw-r--
2022-10-31 11:36
imap_savebody_basic.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
imap_timeout_basic.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
imap_undelete_basic.phpt
477
B
-rw-rw-r--
2022-10-31 11:36
imap_undelete_error.phpt
944
B
-rw-rw-r--
2022-10-31 11:36
imap_utf8.phpt
387
B
-rw-rw-r--
2022-10-31 11:36
imap_utf8_to_mutf7_basic.phpt
568
B
-rw-rw-r--
2022-10-31 11:36
skipif.inc
519
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test imap_bodystruct() function : basic functionality --SKIPIF-- <?php require_once(__DIR__.'/skipif.inc'); ?> --FILE-- <?php /* Prototype : object imap_bodystruct ( resource $imap_stream , int $msg_number , string $section ) * Description: Read the structure of a specified body section of a specific message. * Source code: ext/imap/php_imap.c */ echo "*** Testing string imap_bodystruct : basic functionality ***\n"; require_once(__DIR__.'/imap_include.inc'); echo "Create a new mailbox for test and add a multipart msgs\n"; $imap_stream = setup_test_mailbox("", 1, $mailbox, "multipart"); if (!is_resource($imap_stream)) { exit("TEST FAILED: Unable to create test mailbox\n"); } echo "\nGet and validate structure of body part 1\n"; $m = imap_bodystruct($imap_stream, 1, "1"); $mandatoryFields = array( 'ifsubtype', 'ifdescription', 'ifid', 'ifdisposition', 'ifdparameters', 'ifparameters', ); foreach($mandatoryFields as $mf) { if(isValid($m->$mf)) { echo "$mf is 0 or 1\n"; } else { echo "$mf FAIL\n"; } } if(is_array($m->parameters)) { echo "parameters is an array\n"; } echo "\nTry to get part 4!\n"; var_dump(imap_bodystruct($imap_stream, 1, "4")); imap_close($imap_stream); function isValid($param) { if(($param == 0) || ($param == 1)) { $result=true; } else { $result=false; } return $result; } ?> ===Done=== --CLEAN-- <?php require_once('clean.inc'); ?> --EXPECTF-- *** Testing string imap_bodystruct : basic functionality *** Create a new mailbox for test and add a multipart msgs Create a temporary mailbox and add 1 msgs .. mailbox '{%s}%s' created Get and validate structure of body part 1 ifsubtype is 0 or 1 ifdescription is 0 or 1 ifid is 0 or 1 ifdisposition is 0 or 1 ifdparameters is 0 or 1 ifparameters is 0 or 1 parameters is an array Try to get part 4! bool(false) ===Done===