/PHP-8.0/ext/ftp/ |
H A D | ftp.stub.php | 13 /** @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 D | ftp.c | 125 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 D | php_ftp.c | 46 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 D | ftp.h | 99 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 D | config.w32 | 3 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 D | ftp_arginfo.h | 19 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 D | 003.phpt | 11 $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 D | 005.phpt | 17 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 D | bug39458.phpt | 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 D | 007.phpt | 12 $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 D | bug39458-2.phpt | 12 $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 D | ftp_mlsd_empty_directory.phpt | 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_mlsd($ftp, 'emptydir')); 17 var_dump(ftp_mlsd($ftp, 'bogusdir')); 19 ftp_close($ftp);
|
H A D | ftp_set_option.phpt | 11 $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 D | ftp_get_option.phpt | 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_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 D | ftp_mdtm_basic.phpt | 14 $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 D | filesize_large.phpt | 14 $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 D | 001.phpt | 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')); 15 var_dump(ftp_raw($ftp, 'HELP')); 16 var_dump(ftp_raw($ftp, 'HELP HELP')); 18 var_dump(ftp_close($ftp));
|
H A D | bug80901.phpt | 2 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 D | 002.phpt | 14 $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 D | ftp_rename_basic1.phpt | 11 $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 D | bug79100.phpt | 12 $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 D | ftp_append.phpt | 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')); 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 D | opendir-001.phpt | 2 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 D | bug77765.phpt | 2 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 D | opendir-002.phpt | 2 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."/";
|