Home
last modified time | relevance | path

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

12345

/PHP-8.2/ext/ftp/
H A Dftp.c125 ftp = ecalloc(1, sizeof(*ftp)); in ftp_open()
176 data_close(ftp, ftp->data); in ftp_close()
184 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
1054 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_put()
1121 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_append()
1311 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline()
1398 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in single_send()
1511 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv()
2008 if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125 && ftp->resp != 226)) { in ftp_genlist()
2298 ftp->data = data_close(ftp, ftp->data); in ftp_nb_continue_write()
[all …]
H A Dphp_ftp.c48 PHP_MINIT(ftp),
52 PHP_MINFO(ftp),
62 ftpbuf_t *ftp; member
77 obj->ftp = NULL; in ftp_object_create()
93 if (obj->ftp) { in ftp_object_destroy()
151 ftpbuf_t *ftp; in PHP_FUNCTION() local
188 ftpbuf_t *ftp; in PHP_FUNCTION() local
231 ftpbuf_t *ftp; in PHP_FUNCTION() local
256 ftpbuf_t *ftp; in PHP_FUNCTION() local
279 ftpbuf_t *ftp; in PHP_FUNCTION() local
[all …]
H A Dftp.h100 int ftp_quit(ftpbuf_t *ftp);
103 void ftp_gc(ftpbuf_t *ftp);
106 ftpbuf_t* ftp_close(ftpbuf_t *ftp);
112 int ftp_reinit(ftpbuf_t *ftp);
115 const char* ftp_syst(ftpbuf_t *ftp);
118 const char* ftp_pwd(ftpbuf_t *ftp);
121 int ftp_exec(ftpbuf_t *ftp, const char *cmd, const size_t cmd_len);
130 int ftp_cdup(ftpbuf_t *ftp);
178 int ftp_pasv(ftpbuf_t *ftp, int pasv);
222 int ftp_nb_continue_read(ftpbuf_t *ftp);
[all …]
H A Dftp.stub.php69 function ftp_pwd(FTP\Connection $ftp): string|false {}
70 function ftp_cdup(FTP\Connection $ftp): bool {}
72 function ftp_exec(FTP\Connection $ftp, string $command): bool {}
78 function ftp_raw(FTP\Connection $ftp, string $command): ?array {}
104 function ftp_systype(FTP\Connection $ftp): string|false {}
111 function ftp_pasv(FTP\Connection $ftp, bool $enable): bool {}
114 function ftp_nb_continue(FTP\Connection $ftp): int {}
124 function ftp_size(FTP\Connection $ftp, string $filename): int {}
125 function ftp_mdtm(FTP\Connection $ftp, string $filename): int {}
129 function ftp_close(FTP\Connection $ftp): bool {}
[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-8.2/ext/ftp/tests/
H A D007.phpt7 ftp
11 $ftp = tmpfile();
19 var_dump(ftp_pwd($ftp));
24 var_dump(ftp_cdup($ftp));
34 var_dump(ftp_exec($ftp, 'x'));
39 var_dump(ftp_raw($ftp, 'x'));
84 var_dump(ftp_fget($ftp, $ftp, 'remote', 7777));
89 var_dump(ftp_nb_fget($ftp, $ftp, 'remote', 7777));
114 var_dump(ftp_fput($ftp, 'remote', $ftp, 9999));
119 var_dump(ftp_nb_fput($ftp, 'remote', $ftp, 9999));
[all …]
H A D003.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
15 var_dump(ftp_pwd($ftp));
17 var_dump(ftp_chdir($ftp, 'mydir'));
18 var_dump(ftp_pwd($ftp));
21 var_dump(ftp_pwd($ftp));
23 var_dump(ftp_cdup($ftp));
24 var_dump(ftp_pwd($ftp));
26 var_dump(ftp_chdir($ftp, '..'));
27 var_dump(ftp_pwd($ftp));
[all …]
H A D005.phpt4 ftp
16 var_dump(ftp_alloc($ftp, 400));
17 var_dump(ftp_cdup($ftp));
18 var_dump(ftp_chdir($ftp, '~'));
20 var_dump(ftp_delete($ftp, 'x'));
21 var_dump(ftp_exec($ftp, 'x'));
35 ftp_get($ftp, 'x', 'y', 0);
40 var_dump(ftp_mdtm($ftp, 'x'));
56 var_dump(ftp_systype($ftp));
57 var_dump(ftp_pwd($ftp));
[all …]
H A Dbug39458.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
15 var_dump(ftp_nlist($ftp, ''));
16 var_dump(ftp_nlist($ftp, 'emptydir'));
17 var_dump(ftp_nlist($ftp, 'bogusdir'));
19 ftp_close($ftp);
H A Dbug39458-2.phpt4 ftp
11 $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 Dftp_mlsd_empty_directory.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
15 var_dump(ftp_mlsd($ftp, 'emptydir'));
16 var_dump(ftp_mlsd($ftp, 'bogusdir'));
18 ftp_close($ftp);
H A Dftp_get_option.phpt6 ftp
13 $ftp = ftp_connect('127.0.0.1', $port);
14 ftp_login($ftp, 'user', 'pass');
15 $ftp or die("Couldn't connect to the server");
17 var_dump(ftp_get_option($ftp, FTP_TIMEOUT_SEC));
18 var_dump(ftp_get_option($ftp, FTP_AUTOSEEK));
19 var_dump(ftp_get_option($ftp, FTP_USEPASVADDRESS));
22 ftp_get_option($ftp, FOO_BAR);
H A Dftp_set_option.phpt6 ftp
12 $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, 10));
17 var_dump(ftp_set_option($ftp, FTP_AUTOSEEK, false));
18 var_dump(ftp_set_option($ftp, FTP_USEPASVADDRESS, true));
H A Dftp_mdtm_basic.phpt6 ftp
13 $ftp = ftp_connect('127.0.0.1', $port);
14 if (!$ftp) die("Couldn't connect to the server");
16 var_dump(ftp_login($ftp, 'user', 'pass'));
21 $time = ftp_mdtm($ftp, "A");
24 $time = ftp_mdtm($ftp, "B");
27 $time = ftp_mdtm($ftp, "C");
30 $time = ftp_mdtm($ftp, "D");
33 $time = ftp_mdtm($ftp, "19990929043300 File6");
36 $time = ftp_mdtm($ftp, "MdTm 19990929043300 file6");
H A D001.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
14 var_dump(ftp_raw($ftp, 'HELP'));
15 var_dump(ftp_raw($ftp, 'HELP HELP'));
17 var_dump(ftp_close($ftp));
H A Dbug80901.phpt2 Bug #80901 (Info leak in ftp extension)
4 ftp
11 $ftp = ftp_connect("127.0.0.1", $port);
12 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
14 ftp_systype($ftp);
H A Dfilesize_large.phpt4 ftp
16 $ftp = ftp_connect('127.0.0.1', $port);
17 if (!$ftp) die("Couldn't connect to the server");
19 ftp_login($ftp, 'user', 'pass');
20 var_dump(ftp_size($ftp, 'largefile'));
22 ftp_close($ftp);
H A D002.phpt4 ftp
16 $ftp = ftp_ssl_connect('127.0.0.1', $port);
17 if (!$ftp) die("Couldn't connect to the server");
19 var_dump(ftp_login($ftp, 'user', 'pass'));
20 var_dump(ftp_raw($ftp, 'HELP'));
21 var_dump(ftp_raw($ftp, 'HELP HELP'));
23 var_dump(ftp_close($ftp));
H A Dbug79100.phpt4 ftp
11 $ftp = ftp_connect("127.0.0.1", $port);
12 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
14 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 1));
15 ftp_systype($ftp);
H A Dftp_rename_basic1.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
13 ftp_login($ftp, 'user', 'pass');
15 var_dump(ftp_rename($ftp, 'existing_file', 'nonexisting_file'));
16 var_dump(ftp_rename($ftp, 'nonexisting_file', 'nonexisting_file'));
H A Dftp_rawlist_basic1.phpt6 ftp
12 $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 $result = ftp_rawlist($ftp, 'www/');
19 ftp_close($ftp);
H A Dftp_append.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
13 var_dump(ftp_login($ftp, 'user', 'pass'));
17 var_dump(ftp_append($ftp, 'ftp_append_foobar', $fooPath, FTP_BINARY));
21 var_dump(ftp_append($ftp, 'ftp_append_foobar', $barPath, FTP_BINARY));
26 ftp_close($ftp);
H A Ddead-resource.phpt4 ftp
10 $ftp = ftp_connect('127.0.0.1', $port);
11 if (!$ftp) die("Couldn't connect to the server");
12 var_dump(ftp_login($ftp, 'user', 'pass'));
13 var_dump(ftp_close($ftp));
16 var_dump(ftp_login($ftp, 'user', 'pass'));
H A Dbug27809.phpt4 ftp
11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'anonymous', 'IEUser@'));
15 var_dump(ftp_systype($ftp));
H A Dbug7216.phpt4 ftp
11 $ftp = ftp_connect('127.0.0.1', $port);
12 if (!$ftp) die("Couldn't connect to the server");
14 var_dump(ftp_login($ftp, 'anonymous', 'IEUser@'));
15 var_dump(ftp_mkdir($ftp, 'CVS'));

Completed in 36 milliseconds

12345