Home
last modified time | relevance | path

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

12345

/PHP-8.0/ext/ftp/
H A Dftp.stub.php13 /** @param resource $ftp */
16 /** @param resource $ftp */
19 /** @param resource $ftp */
22 /** @param resource $ftp */
25 /** @param resource $ftp */
41 * @param resource $ftp
59 * @param resource $ftp
65 * @param resource $ftp
83 * @param resource $ftp
89 * @param resource $ftp
[all …]
H A Dftp.c125 ftp = ecalloc(1, sizeof(*ftp)); in ftp_open()
171 data_close(ftp, ftp->data); in ftp_close()
179 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
1030 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_put()
1097 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_append()
1290 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline()
1377 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in single_send()
1490 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv()
1986 if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125 && ftp->resp != 226)) { in ftp_genlist()
2267 ftp->data = data_close(ftp, ftp->data); in ftp_nb_continue_write()
[all …]
H A Dphp_ftp.c46 PHP_MINIT(ftp),
50 PHP_MINFO(ftp),
63 ftp_close(ftp); in ZEND_GET_MODULE()
118 ftpbuf_t *ftp; in PHP_FUNCTION() local
154 ftpbuf_t *ftp; in PHP_FUNCTION() local
189 ftpbuf_t *ftp; in PHP_FUNCTION() local
217 ftpbuf_t *ftp; in PHP_FUNCTION() local
243 ftpbuf_t *ftp; in PHP_FUNCTION() local
268 ftpbuf_t *ftp; in PHP_FUNCTION() local
296 ftpbuf_t *ftp; in PHP_FUNCTION() local
[all …]
H A Dftp.h99 int ftp_quit(ftpbuf_t *ftp);
102 void ftp_gc(ftpbuf_t *ftp);
105 ftpbuf_t* ftp_close(ftpbuf_t *ftp);
111 int ftp_reinit(ftpbuf_t *ftp);
114 const char* ftp_syst(ftpbuf_t *ftp);
117 const char* ftp_pwd(ftpbuf_t *ftp);
120 int ftp_exec(ftpbuf_t *ftp, const char *cmd, const size_t cmd_len);
129 int ftp_cdup(ftpbuf_t *ftp);
177 int ftp_pasv(ftpbuf_t *ftp, int pasv);
221 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");
H A Dftp_arginfo.h19 ZEND_ARG_INFO(0, ftp)
25 ZEND_ARG_INFO(0, ftp)
29 ZEND_ARG_INFO(0, ftp)
33 ZEND_ARG_INFO(0, ftp)
38 ZEND_ARG_INFO(0, ftp)
43 ZEND_ARG_INFO(0, ftp)
48 ZEND_ARG_INFO(0, ftp)
55 ZEND_ARG_INFO(0, ftp)
61 ZEND_ARG_INFO(0, ftp)
67 ZEND_ARG_INFO(0, ftp)
[all …]
/PHP-8.0/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'));
36 ftp_get($ftp, 'x', 'y', 0);
41 var_dump(ftp_mdtm($ftp, 'x'));
57 var_dump(ftp_systype($ftp));
58 var_dump(ftp_pwd($ftp));
59 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();
20 var_dump(ftp_pwd($ftp));
25 var_dump(ftp_cdup($ftp));
35 var_dump(ftp_exec($ftp, 'x'));
40 var_dump(ftp_raw($ftp, 'x'));
85 var_dump(ftp_fget($ftp, $ftp, 'remote', 7777));
90 var_dump(ftp_nb_fget($ftp, $ftp, 'remote', 7777));
115 var_dump(ftp_fput($ftp, 'remote', $ftp, 9999));
120 var_dump(ftp_nb_fput($ftp, 'remote', $ftp, 9999));
165 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 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_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));
21 ftp_get_option($ftp, FOO_BAR);
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 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 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 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_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-8.0/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";
18 Warning: opendir(ftp://localhost:%d/bogusdir): Failed to open directory: FTP server reports 250 /bo…
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."/";

Completed in 48 milliseconds

12345