Lines Matching refs:ftp_ssl_connect

2 Test ftp_ssl_connect() function : error conditions
7 if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
11 echo "*** Testing ftp_ssl_connect() function : error conditions ***\n";
12 echo "\n-- Testing ftp_ssl_connect() function on failure --\n";
13 var_dump(ftp_ssl_connect('totes.invalid'));
15 echo "\n-- Testing ftp_ssl_connect() function invalid argument type --\n";
16 ftp_ssl_connect([]);
17 ftp_ssl_connect('totes.invalid', []);
18 ftp_ssl_connect('totes.invalid', 21, []);
20 echo "\n-- Testing ftp_ssl_connect() function with more than expected no. of arguments --\n";
21 ftp_ssl_connect('totes.invalid', 21, 1, []);
23 echo "\n-- Testing ftp_ssl_connect() function timeout warning for value 0 --\n";
24 ftp_ssl_connect('totes.invalid', 21, 0);
28 *** Testing ftp_ssl_connect() function : error conditions ***
30 -- Testing ftp_ssl_connect() function on failure --
32 Warning: ftp_ssl_connect(): php_network_getaddresses: getaddrinfo failed: %s in %s on line %d
35 -- Testing ftp_ssl_connect() function invalid argument type --
37 Warning: ftp_ssl_connect() expects parameter 1 to be string, array given in %s on line %d
39 Warning: ftp_ssl_connect() expects parameter 2 to be int, array given in %s on line %d
41 Warning: ftp_ssl_connect() expects parameter 3 to be int, array given in %s on line %d
43 -- Testing ftp_ssl_connect() function with more than expected no. of arguments --
45 Warning: ftp_ssl_connect() expects at most 3 parameters, 4 given in %s on line %d
47 -- Testing ftp_ssl_connect() function timeout warning for value 0 --
49 Warning: ftp_ssl_connect(): Timeout has to be greater than 0 in %s on line %d