Home
last modified time | relevance | path

Searched refs:ftp (Results 1 – 25 of 103) sorted by relevance

12345

/PHP-7.4/ext/ftp/
H A Dftp.c130 ftp = ecalloc(1, sizeof(*ftp)); in ftp_open()
177 data_close(ftp, ftp->data); in ftp_close()
185 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
1058 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_put()
1126 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_append()
1326 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline()
1414 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in single_send()
1529 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv()
2033 if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125 && ftp->resp != 226)) { in ftp_genlist()
2318 ftp->data = data_close(ftp, ftp->data); in ftp_nb_continue_write()
[all …]
H A Dphp_ftp.c298 PHP_MINIT(ftp),
371 ftpbuf_t *ftp; in PHP_FUNCTION() local
408 ftpbuf_t *ftp; in PHP_FUNCTION() local
444 ftpbuf_t *ftp; in PHP_FUNCTION() local
473 ftpbuf_t *ftp; in PHP_FUNCTION() local
500 ftpbuf_t *ftp; in PHP_FUNCTION() local
526 ftpbuf_t *ftp; in PHP_FUNCTION() local
555 ftpbuf_t *ftp; in PHP_FUNCTION() local
584 ftpbuf_t *ftp; in PHP_FUNCTION() local
606 ftpbuf_t *ftp; in PHP_FUNCTION() local
[all …]
H A Dftp.h101 int ftp_quit(ftpbuf_t *ftp);
104 void ftp_gc(ftpbuf_t *ftp);
107 ftpbuf_t* ftp_close(ftpbuf_t *ftp);
113 int ftp_reinit(ftpbuf_t *ftp);
116 const char* ftp_syst(ftpbuf_t *ftp);
119 const char* ftp_pwd(ftpbuf_t *ftp);
122 int ftp_exec(ftpbuf_t *ftp, const char *cmd, const size_t cmd_len);
131 int ftp_cdup(ftpbuf_t *ftp);
179 int ftp_pasv(ftpbuf_t *ftp, int pasv);
223 int ftp_nb_continue_read(ftpbuf_t *ftp);
[all …]
H A Dconfig.w323 ARG_ENABLE("ftp", "ftp support", "no");
7 EXTENSION("ftp", "php_ftp.c ftp.c");
9 var ret = SETUP_OPENSSL("ftp", PHP_FTP);
12 MESSAGE("Enabling SSL support for ext\\ftp");
/PHP-7.4/ext/ftp/tests/
H A D003.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
14 var_dump(ftp_login($ftp, 'user', 'pass'));
16 var_dump(ftp_pwd($ftp));
18 var_dump(ftp_chdir($ftp, 'mydir'));
19 var_dump(ftp_pwd($ftp));
22 var_dump(ftp_pwd($ftp));
24 var_dump(ftp_cdup($ftp));
25 var_dump(ftp_pwd($ftp));
27 var_dump(ftp_chdir($ftp, '..'));
28 var_dump(ftp_pwd($ftp));
[all …]
H A D005.phpt17 var_dump(ftp_alloc($ftp, 400));
18 var_dump(ftp_cdup($ftp));
19 var_dump(ftp_chdir($ftp, '~'));
21 var_dump(ftp_delete($ftp, 'x'));
22 var_dump(ftp_exec($ftp, 'x'));
26 var_dump(ftp_mdtm($ftp, 'x'));
27 var_dump(ftp_mkdir($ftp, 'x'));
31 var_dump(ftp_systype($ftp));
32 var_dump(ftp_pwd($ftp));
33 var_dump(ftp_size($ftp, ''));
[all …]
H A Dbug39458.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'user', 'pass'));
16 var_dump(ftp_nlist($ftp, ''));
17 var_dump(ftp_nlist($ftp, 'emptydir'));
18 var_dump(ftp_nlist($ftp, 'bogusdir'));
20 ftp_close($ftp);
H A D007.phpt12 $ftp = tmpfile();
15 var_dump(ftp_pwd($ftp));
16 var_dump(ftp_cdup($ftp));
19 var_dump(ftp_raw($ftp, 'x'));
27 var_dump(ftp_systype($ftp));
28 var_dump(ftp_fget($ftp, $ftp, 'remote', 7777));
29 var_dump(ftp_nb_fget($ftp, $ftp, 'remote', 7777));
34 var_dump(ftp_fput($ftp, 'remote', $ftp, 9999));
35 var_dump(ftp_nb_fput($ftp, 'remote', $ftp, 9999));
44 var_dump(ftp_close($ftp));
[all …]
H A Dbug39458-2.phpt12 $ftp = ftp_connect('127.0.0.1', $port);
13 if (!$ftp) die("Couldn't connect to the server");
15 var_dump(ftp_login($ftp, 'user', 'pass'));
17 var_dump(ftp_nlist($ftp, ''));
18 var_dump(ftp_nlist($ftp, 'emptydir'));
19 var_dump(ftp_nlist($ftp, 'bogusdir'));
21 ftp_close($ftp);
H A D006.phpt9 $ftp=null;
13 var_dump(ftp_raw($ftp));
14 var_dump(ftp_mkdir($ftp));
15 var_dump(ftp_rmdir($ftp));
16 var_dump(ftp_nlist($ftp));
18 var_dump(ftp_fget($ftp));
21 var_dump(ftp_pasv($ftp));
25 var_dump(ftp_put($ftp));
27 var_dump(ftp_size($ftp));
28 var_dump(ftp_mdtm($ftp));
[all …]
H A D004.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
16 var_dump(ftp_systype($ftp));
19 var_dump(ftp_alloc($ftp, array()));
20 var_dump(ftp_cdup($ftp, 0));
21 var_dump(ftp_chdir($ftp, array()));
22 var_dump(ftp_chmod($ftp, 0666));
26 var_dump(ftp_exec($ftp, array()));
28 var_dump(ftp_systype($ftp, 0));
29 var_dump(ftp_pwd($ftp, array()));
31 var_dump(ftp_login($ftp));
[all …]
H A Dftp_get_option.phpt12 $ftp = ftp_connect('127.0.0.1', $port);
13 ftp_login($ftp, 'user', 'pass');
14 $ftp or die("Couldn't connect to the server");
16 var_dump(ftp_get_option($ftp, FTP_TIMEOUT_SEC));
17 var_dump(ftp_get_option($ftp, FTP_AUTOSEEK));
18 var_dump(ftp_get_option($ftp, FTP_USEPASVADDRESS));
19 var_dump(ftp_get_option($ftp, FOO_BAR));
H A Dftp_mlsd_empty_directory.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'user', 'pass'));
16 var_dump(ftp_mlsd($ftp, 'emptydir'));
17 var_dump(ftp_mlsd($ftp, 'bogusdir'));
19 ftp_close($ftp);
H A Dftp_set_option.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 ftp_login($ftp, 'user', 'pass');
13 $ftp or die("Couldn't connect to the server");
15 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 10));
16 var_dump(ftp_set_option($ftp, FTP_AUTOSEEK, false));
17 var_dump(ftp_set_option($ftp, FTP_USEPASVADDRESS, true));
H A Dftp_mdtm_basic.phpt14 $ftp = ftp_connect('127.0.0.1', $port);
15 if (!$ftp) die("Couldn't connect to the server");
17 var_dump(ftp_login($ftp, 'user', 'pass'));
22 $time = ftp_mdtm($ftp, "A");
25 $time = ftp_mdtm($ftp, "B");
28 $time = ftp_mdtm($ftp, "C");
31 $time = ftp_mdtm($ftp, "D");
34 $time = ftp_mdtm($ftp, "19990929043300 File6");
37 $time = ftp_mdtm($ftp, "MdTm 19990929043300 file6");
H A D001.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'user', 'pass'));
15 var_dump(ftp_raw($ftp, 'HELP'));
16 var_dump(ftp_raw($ftp, 'HELP HELP'));
18 var_dump(ftp_close($ftp));
H A Dfilesize_large.phpt14 $ftp = ftp_connect('127.0.0.1', $port);
15 if (!$ftp) die("Couldn't connect to the server");
17 ftp_login($ftp, 'user', 'pass');
18 var_dump(ftp_size($ftp, 'largefile'));
20 ftp_close($ftp);
H A Dbug80901.phpt2 Bug #80901 (Info leak in ftp extension)
14 $ftp = ftp_connect("127.0.0.1", $port);
15 if (!$ftp) die("Couldn't connect to the server");
16 var_dump(ftp_login($ftp, 'user', 'pass'));
17 ftp_systype($ftp);
H A D002.phpt14 $ftp = ftp_ssl_connect('127.0.0.1', $port);
15 if (!$ftp) die("Couldn't connect to the server");
17 var_dump(ftp_login($ftp, 'user', 'pass'));
18 var_dump(ftp_raw($ftp, 'HELP'));
19 var_dump(ftp_raw($ftp, 'HELP HELP'));
21 var_dump(ftp_close($ftp));
H A Dftp_set_option_errors.phpt12 $ftp = ftp_connect('127.0.0.1', $port);
13 ftp_login($ftp, 'user', 'pass');
14 $ftp or die("Couldn't connect to the server");
16 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 0));
17 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, '0'));
18 var_dump(ftp_set_option($ftp, FTP_USEPASVADDRESS, ['1']));
19 var_dump(ftp_set_option($ftp, FTP_AUTOSEEK, 'true'));
20 var_dump(ftp_set_option($ftp, FOO_BAR, 1));
H A Dftp_rename_basic1.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 ftp_login($ftp, 'user', 'pass');
16 var_dump(ftp_rename($ftp, 'existing_file', 'nonexisting_file'));
17 var_dump(ftp_rename($ftp, 'nonexisting_file', 'nonexisting_file'));
H A Dbug79100.phpt12 $ftp = ftp_connect("127.0.0.1", $port);
13 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'user', 'pass'));
15 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 1));
16 ftp_systype($ftp);
H A Dftp_append.phpt11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'user', 'pass'));
18 var_dump(ftp_append($ftp, 'ftp_append_foobar', $fooPath, FTP_BINARY));
22 var_dump(ftp_append($ftp, 'ftp_append_foobar', $barPath, FTP_BINARY));
27 ftp_close($ftp);
/PHP-7.4/ext/standard/tests/streams/
H A Dopendir-001.phpt2 opendir() with 'ftp://' stream.
5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
11 require __DIR__ . "/../../../ftp/tests/server.inc";
13 $path="ftp://localhost:" . $port."/bogusdir";
19 Warning: opendir(ftp://localhost:%d/bogusdir): failed to open dir: FTP server reports 250 /bogusdir…
H A Dbug77765.phpt2 stat() on directory should return 40755 for ftp://
5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
11 require __DIR__ . "/../../../ftp/tests/server.inc";
13 $path = "ftp://localhost:" . $port."/www";

Completed in 53 milliseconds

12345