/PHP-8.1/ext/ftp/ |
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() 1287 memmove(ftp->inbuf, ftp->extra, ftp->extralen); in ftp_readline() 1374 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in single_send() 1487 if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { in my_recv() 1983 if (!ftp_getresp(ftp) || (ftp->resp != 150 && ftp->resp != 125 && ftp->resp != 226)) { in ftp_genlist() 2273 ftp->data = data_close(ftp, ftp->data); in ftp_nb_continue_write() [all …]
|
H A D | php_ftp.c | 47 PHP_MINIT(ftp), 51 PHP_MINFO(ftp), 61 ftpbuf_t *ftp; member 76 obj->ftp = NULL; in ftp_object_create() 92 if (obj->ftp) { in ftp_object_destroy() 159 ftpbuf_t *ftp; in PHP_FUNCTION() local 196 ftpbuf_t *ftp; in PHP_FUNCTION() local 239 ftpbuf_t *ftp; in PHP_FUNCTION() local 264 ftpbuf_t *ftp; in PHP_FUNCTION() local 287 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 | ftp.stub.php | 26 function ftp_pwd(FTP\Connection $ftp): string|false {} argument 27 function ftp_cdup(FTP\Connection $ftp): bool {} argument 28 function ftp_chdir(FTP\Connection $ftp, string $directory): bool {} argument 29 function ftp_exec(FTP\Connection $ftp, string $command): bool {} argument 35 function ftp_raw(FTP\Connection $ftp, string $command): ?array {} argument 37 function ftp_rmdir(FTP\Connection $ftp, string $directory): bool {} argument 61 function ftp_systype(FTP\Connection $ftp): string|false {} argument 68 function ftp_pasv(FTP\Connection $ftp, bool $enable): bool {} argument 71 function ftp_nb_continue(FTP\Connection $ftp): int {} argument 86 function ftp_close(FTP\Connection $ftp): bool {} argument [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_OBJ_INFO(0, ftp, FTP\\Connection, 0) 25 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 29 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 33 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 38 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 43 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 48 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 55 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 61 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) 67 ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0) [all …]
|
/PHP-8.1/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 | 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_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 | 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'));
|