Lines Matching refs:ftp
59 ZEND_ARG_INFO(0, ftp)
65 ZEND_ARG_INFO(0, ftp)
69 ZEND_ARG_INFO(0, ftp)
73 ZEND_ARG_INFO(0, ftp)
78 ZEND_ARG_INFO(0, ftp)
83 ZEND_ARG_INFO(0, ftp)
88 ZEND_ARG_INFO(0, ftp)
93 ZEND_ARG_INFO(0, ftp)
98 ZEND_ARG_INFO(0, ftp)
104 ZEND_ARG_INFO(0, ftp)
110 ZEND_ARG_INFO(0, ftp)
115 ZEND_ARG_INFO(0, ftp)
121 ZEND_ARG_INFO(0, ftp)
126 ZEND_ARG_INFO(0, ftp)
130 ZEND_ARG_INFO(0, ftp)
138 ZEND_ARG_INFO(0, ftp)
146 ZEND_ARG_INFO(0, ftp)
151 ZEND_ARG_INFO(0, ftp)
159 ZEND_ARG_INFO(0, ftp)
167 ZEND_ARG_INFO(0, ftp)
171 ZEND_ARG_INFO(0, ftp)
179 ZEND_ARG_INFO(0, ftp)
187 ZEND_ARG_INFO(0, ftp)
195 ZEND_ARG_INFO(0, ftp)
202 ZEND_ARG_INFO(0, ftp)
210 ZEND_ARG_INFO(0, ftp)
215 ZEND_ARG_INFO(0, ftp)
220 ZEND_ARG_INFO(0, ftp)
226 ZEND_ARG_INFO(0, ftp)
231 ZEND_ARG_INFO(0, ftp)
236 ZEND_ARG_INFO(0, ftp)
240 ZEND_ARG_INFO(0, ftp)
246 ZEND_ARG_INFO(0, ftp)
300 PHP_MINIT(ftp),
304 PHP_MINFO(ftp),
315 ftpbuf_t *ftp = (ftpbuf_t *)rsrc->ptr; in ZEND_GET_MODULE() local
317 ftp_close(ftp); in ZEND_GET_MODULE()
320 PHP_MINIT_FUNCTION(ftp) in PHP_MINIT_FUNCTION() argument
346 PHP_MINFO_FUNCTION(ftp) in PHP_MINFO_FUNCTION() argument
371 ftpbuf_t *ftp; in PHP_FUNCTION() local
387 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) { in PHP_FUNCTION()
392 ftp->autoseek = FTP_DEFAULT_AUTOSEEK; in PHP_FUNCTION()
393 ftp->usepasvaddress = FTP_DEFAULT_USEPASVADDRESS; in PHP_FUNCTION()
396 ftp->use_ssl = 0; in PHP_FUNCTION()
399 RETURN_RES(zend_register_resource(ftp, le_ftpbuf)); in PHP_FUNCTION()
408 ftpbuf_t *ftp; in PHP_FUNCTION() local
424 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) { in PHP_FUNCTION()
429 ftp->autoseek = FTP_DEFAULT_AUTOSEEK; in PHP_FUNCTION()
430 ftp->usepasvaddress = FTP_DEFAULT_USEPASVADDRESS; in PHP_FUNCTION()
432 ftp->use_ssl = 1; in PHP_FUNCTION()
434 RETURN_RES(zend_register_resource(ftp, le_ftpbuf)); in PHP_FUNCTION()
444 ftpbuf_t *ftp; in PHP_FUNCTION() local
452 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
457 if (!ftp_login(ftp, user, user_len, pass, pass_len)) { in PHP_FUNCTION()
458 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
471 ftpbuf_t *ftp; in PHP_FUNCTION() local
478 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
482 if (!(pwd = ftp_pwd(ftp))) { in PHP_FUNCTION()
483 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
496 ftpbuf_t *ftp; in PHP_FUNCTION() local
502 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
506 if (!ftp_cdup(ftp)) { in PHP_FUNCTION()
507 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
520 ftpbuf_t *ftp; in PHP_FUNCTION() local
528 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
533 if (!ftp_chdir(ftp, dir, dir_len)) { in PHP_FUNCTION()
534 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
547 ftpbuf_t *ftp; in PHP_FUNCTION() local
555 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
560 if (!ftp_exec(ftp, cmd, cmd_len)) { in PHP_FUNCTION()
561 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
574 ftpbuf_t *ftp; in PHP_FUNCTION() local
582 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
587 ftp_raw(ftp, cmd, cmd_len, return_value); in PHP_FUNCTION()
596 ftpbuf_t *ftp; in PHP_FUNCTION() local
605 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
610 if (NULL == (tmp = ftp_mkdir(ftp, dir, dir_len))) { in PHP_FUNCTION()
611 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
624 ftpbuf_t *ftp; in PHP_FUNCTION() local
632 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
637 if (!ftp_rmdir(ftp, dir, dir_len)) { in PHP_FUNCTION()
638 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
651 ftpbuf_t *ftp; in PHP_FUNCTION() local
660 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
664 if (!ftp_chmod(ftp, mode, filename, filename_len)) { in PHP_FUNCTION()
665 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
678 ftpbuf_t *ftp; in PHP_FUNCTION() local
686 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
690 ret = ftp_alloc(ftp, size, zresponse ? &response : NULL); in PHP_FUNCTION()
709 ftpbuf_t *ftp; in PHP_FUNCTION() local
717 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
722 if (NULL == (nlist = ftp_nlist(ftp, dir, dir_len))) { in PHP_FUNCTION()
739 ftpbuf_t *ftp; in PHP_FUNCTION() local
748 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
753 if (NULL == (llist = ftp_list(ftp, dir, dir_len, recursive))) { in PHP_FUNCTION()
770 ftpbuf_t *ftp; in PHP_FUNCTION() local
779 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
784 if (NULL == (llist = ftp_mlsd(ftp, dir, dir_len))) { in PHP_FUNCTION()
807 ftpbuf_t *ftp; in PHP_FUNCTION() local
814 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
818 if (NULL == (syst = ftp_syst(ftp))) { in PHP_FUNCTION()
819 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
832 ftpbuf_t *ftp; in PHP_FUNCTION() local
843 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
850 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
854 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
864 if (!ftp_get(ftp, stream, file, file_len, xtype, resumepos)) { in PHP_FUNCTION()
865 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
878 ftpbuf_t *ftp; in PHP_FUNCTION() local
889 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
896 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
900 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
911 ftp->direction = 0; /* recv */ in PHP_FUNCTION()
912 ftp->closestream = 0; /* do not close */ in PHP_FUNCTION()
914 if ((ret = ftp_nb_get(ftp, stream, file, file_len, xtype, resumepos)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
915 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
928 ftpbuf_t *ftp; in PHP_FUNCTION() local
935 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
939 if (!ftp_pasv(ftp, pasv ? 1 : 0)) { in PHP_FUNCTION()
952 ftpbuf_t *ftp; in PHP_FUNCTION() local
963 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
969 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
977 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
1000 if (!ftp_get(ftp, outstream, remote, remote_len, xtype, resumepos)) { in PHP_FUNCTION()
1003 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1017 ftpbuf_t *ftp; in PHP_FUNCTION() local
1029 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1035 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1041 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
1065 ftp->direction = 0; /* recv */ in PHP_FUNCTION()
1066 ftp->closestream = 1; /* do close */ in PHP_FUNCTION()
1068 if ((ret = ftp_nb_get(ftp, outstream, remote, remote_len, xtype, resumepos)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
1070 ftp->stream = NULL; in PHP_FUNCTION()
1072 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1078 ftp->stream = NULL; in PHP_FUNCTION()
1090 ftpbuf_t *ftp; in PHP_FUNCTION() local
1097 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1101 if (!ftp->nb) { in PHP_FUNCTION()
1106 if (ftp->direction) { in PHP_FUNCTION()
1107 ret=ftp_nb_continue_write(ftp); in PHP_FUNCTION()
1109 ret=ftp_nb_continue_read(ftp); in PHP_FUNCTION()
1112 if (ret != PHP_FTP_MOREDATA && ftp->closestream) { in PHP_FUNCTION()
1113 php_stream_close(ftp->stream); in PHP_FUNCTION()
1114 ftp->stream = NULL; in PHP_FUNCTION()
1118 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1130 ftpbuf_t *ftp; in PHP_FUNCTION() local
1141 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1148 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1152 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1155 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
1165 if (!ftp_put(ftp, remote, remote_len, stream, xtype, startpos)) { in PHP_FUNCTION()
1166 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1179 ftpbuf_t *ftp; in PHP_FUNCTION() local
1191 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1198 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1202 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1205 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
1216 ftp->direction = 1; /* send */ in PHP_FUNCTION()
1217 ftp->closestream = 0; /* do not close */ in PHP_FUNCTION()
1219 if (((ret = ftp_nb_put(ftp, remote, remote_len, stream, xtype, startpos)) == PHP_FTP_FAILED)) { in PHP_FUNCTION()
1220 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1234 ftpbuf_t *ftp; in PHP_FUNCTION() local
1245 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1255 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1259 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1262 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
1272 if (!ftp_put(ftp, remote, remote_len, instream, xtype, startpos)) { in PHP_FUNCTION()
1274 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1288 ftpbuf_t *ftp; in PHP_FUNCTION() local
1299 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1308 if (!ftp_append(ftp, remote, remote_len, instream, xtype)) { in PHP_FUNCTION()
1310 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1324 ftpbuf_t *ftp; in PHP_FUNCTION() local
1335 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1345 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1349 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1352 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
1363 ftp->direction = 1; /* send */ in PHP_FUNCTION()
1364 ftp->closestream = 1; /* do close */ in PHP_FUNCTION()
1366 ret = ftp_nb_put(ftp, remote, remote_len, instream, xtype, startpos); in PHP_FUNCTION()
1370 ftp->stream = NULL; in PHP_FUNCTION()
1374 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1386 ftpbuf_t *ftp; in PHP_FUNCTION() local
1394 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1399 RETURN_LONG(ftp_size(ftp, file, file_len)); in PHP_FUNCTION()
1408 ftpbuf_t *ftp; in PHP_FUNCTION() local
1416 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1421 RETURN_LONG(ftp_mdtm(ftp, file, file_len)); in PHP_FUNCTION()
1430 ftpbuf_t *ftp; in PHP_FUNCTION() local
1438 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1443 if (!ftp_rename(ftp, src, src_len, dest, dest_len)) { in PHP_FUNCTION()
1444 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1457 ftpbuf_t *ftp; in PHP_FUNCTION() local
1465 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1470 if (!ftp_delete(ftp, file, file_len)) { in PHP_FUNCTION()
1471 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1484 ftpbuf_t *ftp; in PHP_FUNCTION() local
1492 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1497 if (!ftp_site(ftp, cmd, cmd_len)) { in PHP_FUNCTION()
1498 php_error_docref(NULL, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1511 ftpbuf_t *ftp; in PHP_FUNCTION() local
1517 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1521 ftp_quit(ftp); in PHP_FUNCTION()
1533 ftpbuf_t *ftp; in PHP_FUNCTION() local
1539 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1554 ftp->timeout_sec = Z_LVAL_P(z_value); in PHP_FUNCTION()
1563 ftp->autoseek = Z_TYPE_P(z_value) == IS_TRUE ? 1 : 0; in PHP_FUNCTION()
1572 ftp->usepasvaddress = Z_TYPE_P(z_value) == IS_TRUE ? 1 : 0; in PHP_FUNCTION()
1589 ftpbuf_t *ftp; in PHP_FUNCTION() local
1595 if ((ftp = (ftpbuf_t *)zend_fetch_resource(Z_RES_P(z_ftp), le_ftpbuf_name, le_ftpbuf)) == NULL) { in PHP_FUNCTION()
1601 RETURN_LONG(ftp->timeout_sec); in PHP_FUNCTION()
1604 RETURN_BOOL(ftp->autoseek); in PHP_FUNCTION()
1607 RETURN_BOOL(ftp->usepasvaddress); in PHP_FUNCTION()