Home
last modified time | relevance | path

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

1234

/PHP-7.2/ext/ftp/
H A Dftp.c127 ftp = ecalloc(1, sizeof(*ftp)); in ftp_open()
174 data_close(ftp, ftp->data); in ftp_close()
182 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
1055 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_put()
1123 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_append()
1319 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline()
1430 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_send()
1519 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv()
2017 if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125 && ftp->resp != 226)) { in ftp_genlist()
2302 ftp->data = data_close(ftp, ftp->data); in ftp_nb_continue_write()
[all …]
H A Dphp_ftp.c300 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
471 ftpbuf_t *ftp; in PHP_FUNCTION() local
496 ftpbuf_t *ftp; in PHP_FUNCTION() local
520 ftpbuf_t *ftp; in PHP_FUNCTION() local
547 ftpbuf_t *ftp; in PHP_FUNCTION() local
574 ftpbuf_t *ftp; in PHP_FUNCTION() local
596 ftpbuf_t *ftp; in PHP_FUNCTION() local
[all …]
H A Dftp.h103 int ftp_quit(ftpbuf_t *ftp);
106 void ftp_gc(ftpbuf_t *ftp);
109 ftpbuf_t* ftp_close(ftpbuf_t *ftp);
115 int ftp_reinit(ftpbuf_t *ftp);
118 const char* ftp_syst(ftpbuf_t *ftp);
121 const char* ftp_pwd(ftpbuf_t *ftp);
124 int ftp_exec(ftpbuf_t *ftp, const char *cmd, const size_t cmd_len);
133 int ftp_cdup(ftpbuf_t *ftp);
181 int ftp_pasv(ftpbuf_t *ftp, int pasv);
225 int ftp_nb_continue_read(ftpbuf_t *ftp);
[all …]
H A Dconfig.w324 ARG_ENABLE("ftp", "ftp support", "no");
8 EXTENSION("ftp", "php_ftp.c ftp.c");
10 var ret = SETUP_OPENSSL("ftp", PHP_FTP);
13 MESSAGE("Enabling SSL support for ext\\ftp");
/PHP-7.2/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 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.phpt16 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));
23 var_dump(ftp_get($ftp, 1234,12));
27 var_dump(ftp_exec($ftp, array()));
29 var_dump(ftp_systype($ftp, 0));
30 var_dump(ftp_pwd($ftp, array()));
32 var_dump(ftp_login($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 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 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_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 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'));
19 var_dump(ftp_append($ftp, 'ftp_append_foobar', __DIR__.'/ftp_append_foo', FTP_BINARY));
22 var_dump(ftp_append($ftp, 'ftp_append_foobar', __DIR__.'/ftp_append_bar', FTP_BINARY));
26 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 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 Dbug27809.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, 'anonymous', 'IEUser@'));
16 var_dump(ftp_systype($ftp));
H A Dbug7216.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, 'anonymous', 'IEUser@'));
16 var_dump(ftp_mkdir($ftp, 'CVS'));
H A Dbug39583-2.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'));
20 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_BINARY);
30 ftp_close($ftp);
H A Dbug39583.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'));
21 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_ASCII);
31 ftp_close($ftp);
/PHP-7.2/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";
H A Dopendir-002.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."/";
H A Dbug73457.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
12 require __DIR__ . "/../../../ftp/tests/server.inc";
14 $path="ftp://127.0.0.1:" . $port."/bug73457";
21 Warning: file_get_contents(ftp://127.0.0.1:%d/bug73457): failed to open stream: Failed to set up da…
H A Dbug77680.phpt2 Recursive mkdir() on ftp should create missing directories.
5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
12 require __DIR__ . "/../../../ftp/tests/server.inc";
14 $path = "ftp://localhost:" . $port."/one/two/three/";

Completed in 29 milliseconds

1234