/php-src/ext/ftp/ |
H A D | ftp.c | 125 ftp = ecalloc(1, sizeof(*ftp)); in ftp_open() 182 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close() 373 ftp->use_ssl_for_data = (ftp->resp >= 200 && ftp->resp <=299); in ftp_login() 1097 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_put() 1141 if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250 && ftp->resp != 200)) { in ftp_append() 1331 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline() 1418 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in single_send() 1421 } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { in single_send() 1531 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv() 1534 } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { in my_recv() [all …]
|
H A D | php_ftp.c | 48 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() 140 ftpbuf_t *ftp; in PHP_FUNCTION() local 177 ftpbuf_t *ftp; in PHP_FUNCTION() local 220 ftpbuf_t *ftp; in PHP_FUNCTION() local 245 ftpbuf_t *ftp; in PHP_FUNCTION() local 268 ftpbuf_t *ftp; in PHP_FUNCTION() local [all …]
|
H A D | ftp.h | 100 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 D | ftp.stub.php | 69 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 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"); 16 AC_DEFINE('HAVE_FTP', 1, "Define to 1 if the PHP extension 'ftp' is available.");
|
/php-src/ext/ftp/tests/ |
H A D | 007.phpt | 7 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 D | 003.phpt | 4 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 D | 005.phpt | 4 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 D | bug39458.phpt | 4 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 D | bug39458-2.phpt | 4 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 D | ftp_mlsd_empty_directory.phpt | 4 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 D | ftp_get_option.phpt | 6 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 D | ftp_set_option.phpt | 6 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 D | ftp_mdtm_basic.phpt | 6 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 D | 001.phpt | 4 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 D | bug80901.phpt | 2 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 D | filesize_large.phpt | 4 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 D | 002.phpt | 4 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 D | ftp_rawlist_basic1.phpt | 6 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 D | ftp_rename_basic1.phpt | 4 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 D | bug79100.phpt | 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 var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 1)); 15 ftp_systype($ftp);
|
H A D | ftp_append.phpt | 4 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 D | dead-resource.phpt | 4 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 D | bug27809.phpt | 4 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 D | bug7216.phpt | 4 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'));
|