1--TEST-- 2FTP with bogus parameters 3--SKIPIF-- 4<?php 5require 'skipif.inc'; 6?> 7--FILE-- 8<?php 9$ftp=null; 10 11var_dump(ftp_connect(array())); 12var_dump(ftp_connect('127.0.0.1', 0, -3)); 13var_dump(ftp_raw($ftp)); 14var_dump(ftp_mkdir($ftp)); 15var_dump(ftp_rmdir($ftp)); 16var_dump(ftp_nlist($ftp)); 17var_dump(ftp_rawlist($ftp)); 18var_dump(ftp_fget($ftp)); 19var_dump(ftp_nb_fget($ftp)); 20var_dump(ftp_nb_get($ftp)); 21var_dump(ftp_pasv($ftp)); 22var_dump(ftp_nb_continue()); 23var_dump(ftp_fput()); 24var_dump(ftp_nb_fput($ftp)); 25var_dump(ftp_put($ftp)); 26var_dump(ftp_nb_put($ftp)); 27var_dump(ftp_size($ftp)); 28var_dump(ftp_mdtm($ftp)); 29var_dump(ftp_rename($ftp)); 30var_dump(ftp_site($ftp)); 31var_dump(ftp_set_option($ftp)); 32var_dump(ftp_get_option($ftp)); 33 34?> 35--EXPECTF-- 36Warning: ftp_connect() expects parameter 1 to be string, array given in %s006.php on line 4 37NULL 38 39Warning: ftp_connect(): Timeout has to be greater than 0 in %s006.php on line 5 40bool(false) 41 42Warning: ftp_raw() expects exactly 2 parameters, 1 given in %s006.php on line 6 43NULL 44 45Warning: ftp_mkdir() expects exactly 2 parameters, 1 given in %s006.php on line 7 46NULL 47 48Warning: ftp_rmdir() expects exactly 2 parameters, 1 given in %s006.php on line 8 49NULL 50 51Warning: ftp_nlist() expects exactly 2 parameters, 1 given in %s006.php on line 9 52NULL 53 54Warning: ftp_rawlist() expects at least 2 parameters, 1 given in %s006.php on line 10 55NULL 56 57Warning: ftp_fget() expects at least 4 parameters, 1 given in %s006.php on line 11 58NULL 59 60Warning: ftp_nb_fget() expects at least 4 parameters, 1 given in %s006.php on line 12 61NULL 62 63Warning: ftp_nb_get() expects at least 4 parameters, 1 given in %s006.php on line 13 64NULL 65 66Warning: ftp_pasv() expects exactly 2 parameters, 1 given in %s006.php on line 14 67NULL 68 69Warning: ftp_nb_continue() expects exactly 1 parameter, 0 given in %s006.php on line 15 70NULL 71 72Warning: ftp_fput() expects at least 4 parameters, 0 given in %s006.php on line 16 73NULL 74 75Warning: ftp_nb_fput() expects at least 4 parameters, 1 given in %s006.php on line 17 76NULL 77 78Warning: ftp_put() expects at least 4 parameters, 1 given in %s006.php on line 18 79NULL 80 81Warning: ftp_nb_put() expects at least 4 parameters, 1 given in %s006.php on line 19 82NULL 83 84Warning: ftp_size() expects exactly 2 parameters, 1 given in %s006.php on line 20 85NULL 86 87Warning: ftp_mdtm() expects exactly 2 parameters, 1 given in %s006.php on line 21 88NULL 89 90Warning: ftp_rename() expects exactly 3 parameters, 1 given in %s006.php on line 22 91NULL 92 93Warning: ftp_site() expects exactly 2 parameters, 1 given in %s006.php on line 23 94NULL 95 96Warning: ftp_set_option() expects exactly 3 parameters, 1 given in %s006.php on line 24 97NULL 98 99Warning: ftp_get_option() expects exactly 2 parameters, 1 given in %s006.php on line 25 100NULL 101