/PHP-7.2/ext/ftp/ |
H A D | ftp.c | 127 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 D | php_ftp.c | 300 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 D | ftp.h | 103 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 D | config.w32 | 4 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 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')); 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 D | 006.phpt | 9 $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 D | 004.phpt | 16 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 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 | 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_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 | 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 | 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')); 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 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 | 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 | bug27809.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, 'anonymous', 'IEUser@')); 16 var_dump(ftp_systype($ftp));
|
H A D | bug7216.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, 'anonymous', 'IEUser@')); 16 var_dump(ftp_mkdir($ftp, 'CVS'));
|
H A D | bug39583-2.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')); 20 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_BINARY); 30 ftp_close($ftp);
|
H A D | bug39583.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')); 21 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_ASCII); 31 ftp_close($ftp);
|
/PHP-7.2/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"; 19 Warning: opendir(ftp://localhost:%d/bogusdir): failed to open dir: FTP server reports 250 /bogusdir…
|
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."/";
|
H A D | bug73457.phpt | 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://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 D | bug77680.phpt | 2 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/";
|