Lines Matching refs:ftp

63 	ZEND_ARG_INFO(0, ftp)
69 ZEND_ARG_INFO(0, ftp)
73 ZEND_ARG_INFO(0, ftp)
77 ZEND_ARG_INFO(0, ftp)
82 ZEND_ARG_INFO(0, ftp)
87 ZEND_ARG_INFO(0, ftp)
92 ZEND_ARG_INFO(0, ftp)
97 ZEND_ARG_INFO(0, ftp)
102 ZEND_ARG_INFO(0, ftp)
108 ZEND_ARG_INFO(0, ftp)
114 ZEND_ARG_INFO(0, ftp)
119 ZEND_ARG_INFO(0, ftp)
125 ZEND_ARG_INFO(0, ftp)
129 ZEND_ARG_INFO(0, ftp)
137 ZEND_ARG_INFO(0, ftp)
145 ZEND_ARG_INFO(0, ftp)
150 ZEND_ARG_INFO(0, ftp)
158 ZEND_ARG_INFO(0, ftp)
166 ZEND_ARG_INFO(0, ftp)
170 ZEND_ARG_INFO(0, ftp)
178 ZEND_ARG_INFO(0, ftp)
186 ZEND_ARG_INFO(0, ftp)
194 ZEND_ARG_INFO(0, ftp)
202 ZEND_ARG_INFO(0, ftp)
207 ZEND_ARG_INFO(0, ftp)
212 ZEND_ARG_INFO(0, ftp)
218 ZEND_ARG_INFO(0, ftp)
223 ZEND_ARG_INFO(0, ftp)
228 ZEND_ARG_INFO(0, ftp)
232 ZEND_ARG_INFO(0, ftp)
238 ZEND_ARG_INFO(0, ftp)
288 PHP_MINIT(ftp),
292 PHP_MINFO(ftp),
303 ftpbuf_t *ftp = (ftpbuf_t *)rsrc->ptr; in ZEND_GET_MODULE() local
305 ftp_close(ftp); in ZEND_GET_MODULE()
308 PHP_MINIT_FUNCTION(ftp) in PHP_MINIT_FUNCTION() argument
324 PHP_MINFO_FUNCTION(ftp) in PHP_MINFO_FUNCTION() argument
344 ftpbuf_t *ftp; in PHP_FUNCTION() local
360 if (!(ftp = ftp_open(host, (short)port, timeout_sec TSRMLS_CC))) { in PHP_FUNCTION()
365 ftp->autoseek = FTP_DEFAULT_AUTOSEEK; in PHP_FUNCTION()
368 ftp->use_ssl = 0; in PHP_FUNCTION()
371 ZEND_REGISTER_RESOURCE(return_value, ftp, le_ftpbuf); in PHP_FUNCTION()
380 ftpbuf_t *ftp; in PHP_FUNCTION() local
396 if (!(ftp = ftp_open(host, (short)port, timeout_sec TSRMLS_CC))) { in PHP_FUNCTION()
401 ftp->autoseek = FTP_DEFAULT_AUTOSEEK; in PHP_FUNCTION()
403 ftp->use_ssl = 1; in PHP_FUNCTION()
405 ZEND_REGISTER_RESOURCE(return_value, ftp, le_ftpbuf); in PHP_FUNCTION()
415 ftpbuf_t *ftp; in PHP_FUNCTION() local
423 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
426 if (!ftp_login(ftp, user, pass TSRMLS_CC)) { in PHP_FUNCTION()
427 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
440 ftpbuf_t *ftp; in PHP_FUNCTION() local
447 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
449 if (!(pwd = ftp_pwd(ftp))) { in PHP_FUNCTION()
450 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
463 ftpbuf_t *ftp; in PHP_FUNCTION() local
469 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
471 if (!ftp_cdup(ftp)) { in PHP_FUNCTION()
472 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
485 ftpbuf_t *ftp; in PHP_FUNCTION() local
493 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
496 if (!ftp_chdir(ftp, dir)) { in PHP_FUNCTION()
497 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
510 ftpbuf_t *ftp; in PHP_FUNCTION() local
518 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
521 if (!ftp_exec(ftp, cmd)) { in PHP_FUNCTION()
522 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
535 ftpbuf_t *ftp; in PHP_FUNCTION() local
543 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
546 ftp_raw(ftp, cmd, return_value); in PHP_FUNCTION()
555 ftpbuf_t *ftp; in PHP_FUNCTION() local
563 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
566 if (NULL == (tmp = ftp_mkdir(ftp, dir))) { in PHP_FUNCTION()
567 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
580 ftpbuf_t *ftp; in PHP_FUNCTION() local
588 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
591 if (!ftp_rmdir(ftp, dir)) { in PHP_FUNCTION()
592 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
605 ftpbuf_t *ftp; in PHP_FUNCTION() local
614 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
616 if (!ftp_chmod(ftp, mode, filename, filename_len)) { in PHP_FUNCTION()
617 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
630 ftpbuf_t *ftp; in PHP_FUNCTION() local
638 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
640 ret = ftp_alloc(ftp, size, zresponse ? &response : NULL); in PHP_FUNCTION()
659 ftpbuf_t *ftp; in PHP_FUNCTION() local
667 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
670 if (NULL == (nlist = ftp_nlist(ftp, dir TSRMLS_CC))) { in PHP_FUNCTION()
687 ftpbuf_t *ftp; in PHP_FUNCTION() local
696 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
699 if (NULL == (llist = ftp_list(ftp, dir, recursive TSRMLS_CC))) { in PHP_FUNCTION()
716 ftpbuf_t *ftp; in PHP_FUNCTION() local
723 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
725 if (NULL == (syst = ftp_syst(ftp))) { in PHP_FUNCTION()
726 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
739 ftpbuf_t *ftp; in PHP_FUNCTION() local
750 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
755 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
759 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
769 if (!ftp_get(ftp, stream, file, xtype, resumepos TSRMLS_CC)) { in PHP_FUNCTION()
770 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
783 ftpbuf_t *ftp; in PHP_FUNCTION() local
794 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
799 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
803 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
814 ftp->direction = 0; /* recv */ in PHP_FUNCTION()
815 ftp->closestream = 0; /* do not close */ in PHP_FUNCTION()
817 if ((ret = ftp_nb_get(ftp, stream, file, xtype, resumepos TSRMLS_CC)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
818 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
831 ftpbuf_t *ftp; in PHP_FUNCTION() local
838 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
840 if (!ftp_pasv(ftp, pasv ? 1 : 0)) { in PHP_FUNCTION()
853 ftpbuf_t *ftp; in PHP_FUNCTION() local
864 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
868 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
876 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
899 if (!ftp_get(ftp, outstream, remote, xtype, resumepos TSRMLS_CC)) { in PHP_FUNCTION()
902 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
916 ftpbuf_t *ftp; in PHP_FUNCTION() local
927 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
931 if (!ftp->autoseek && resumepos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
937 if (ftp->autoseek && resumepos) { in PHP_FUNCTION()
961 ftp->direction = 0; /* recv */ in PHP_FUNCTION()
962 ftp->closestream = 1; /* do close */ in PHP_FUNCTION()
964 if ((ret = ftp_nb_get(ftp, outstream, remote, xtype, resumepos TSRMLS_CC)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
967 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
984 ftpbuf_t *ftp; in PHP_FUNCTION() local
991 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
993 if (!ftp->nb) { in PHP_FUNCTION()
998 if (ftp->direction) { in PHP_FUNCTION()
999 ret=ftp_nb_continue_write(ftp TSRMLS_CC); in PHP_FUNCTION()
1001 ret=ftp_nb_continue_read(ftp TSRMLS_CC); in PHP_FUNCTION()
1004 if (ret != PHP_FTP_MOREDATA && ftp->closestream) { in PHP_FUNCTION()
1005 php_stream_close(ftp->stream); in PHP_FUNCTION()
1009 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1021 ftpbuf_t *ftp; in PHP_FUNCTION() local
1032 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1037 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1041 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1044 startpos = ftp_size(ftp, remote); in PHP_FUNCTION()
1054 if (!ftp_put(ftp, remote, stream, xtype, startpos TSRMLS_CC)) { in PHP_FUNCTION()
1055 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1068 ftpbuf_t *ftp; in PHP_FUNCTION() local
1079 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1084 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1088 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1091 startpos = ftp_size(ftp, remote); in PHP_FUNCTION()
1102 ftp->direction = 1; /* send */ in PHP_FUNCTION()
1103 ftp->closestream = 0; /* do not close */ in PHP_FUNCTION()
1105 if (((ret = ftp_nb_put(ftp, remote, stream, xtype, startpos TSRMLS_CC)) == PHP_FTP_FAILED)) { in PHP_FUNCTION()
1106 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1120 ftpbuf_t *ftp; in PHP_FUNCTION() local
1131 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1139 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1143 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1146 startpos = ftp_size(ftp, remote); in PHP_FUNCTION()
1156 if (!ftp_put(ftp, remote, instream, xtype, startpos TSRMLS_CC)) { in PHP_FUNCTION()
1158 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1173 ftpbuf_t *ftp; in PHP_FUNCTION() local
1184 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1192 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1196 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1199 startpos = ftp_size(ftp, remote); in PHP_FUNCTION()
1210 ftp->direction = 1; /* send */ in PHP_FUNCTION()
1211 ftp->closestream = 1; /* do close */ in PHP_FUNCTION()
1213 ret = ftp_nb_put(ftp, remote, instream, xtype, startpos TSRMLS_CC); in PHP_FUNCTION()
1220 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1232 ftpbuf_t *ftp; in PHP_FUNCTION() local
1240 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1243 RETURN_LONG(ftp_size(ftp, file)); in PHP_FUNCTION()
1252 ftpbuf_t *ftp; in PHP_FUNCTION() local
1260 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1263 RETURN_LONG(ftp_mdtm(ftp, file)); in PHP_FUNCTION()
1272 ftpbuf_t *ftp; in PHP_FUNCTION() local
1280 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1283 if (!ftp_rename(ftp, src, dest)) { in PHP_FUNCTION()
1284 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1297 ftpbuf_t *ftp; in PHP_FUNCTION() local
1305 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1308 if (!ftp_delete(ftp, file)) { in PHP_FUNCTION()
1309 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1322 ftpbuf_t *ftp; in PHP_FUNCTION() local
1330 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1333 if (!ftp_site(ftp, cmd)) { in PHP_FUNCTION()
1334 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ftp->inbuf); in PHP_FUNCTION()
1347 ftpbuf_t *ftp; in PHP_FUNCTION() local
1353 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1355 ftp_quit(ftp); in PHP_FUNCTION()
1367 ftpbuf_t *ftp; in PHP_FUNCTION() local
1373 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1386 ftp->timeout_sec = Z_LVAL_P(z_value); in PHP_FUNCTION()
1395 ftp->autoseek = Z_LVAL_P(z_value); in PHP_FUNCTION()
1412 ftpbuf_t *ftp; in PHP_FUNCTION() local
1418 ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); in PHP_FUNCTION()
1422 RETURN_LONG(ftp->timeout_sec); in PHP_FUNCTION()
1425 RETURN_BOOL(ftp->autoseek); in PHP_FUNCTION()