Lines Matching refs:outstream
704 php_stream *outstream; in PHP_FUNCTION() local
728 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", REPORT_ERRORS, N… in PHP_FUNCTION()
729 if (outstream == NULL) { in PHP_FUNCTION()
730 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
732 if (outstream != NULL) { in PHP_FUNCTION()
735 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
736 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
738 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
742 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
745 if (outstream == NULL) { in PHP_FUNCTION()
750 if (!ftp_get(ftp, outstream, remote, remote_len, xtype, resumepos)) { in PHP_FUNCTION()
751 php_stream_close(outstream); in PHP_FUNCTION()
759 php_stream_close(outstream); in PHP_FUNCTION()
770 php_stream *outstream; in PHP_FUNCTION() local
793 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", REPORT_ERRORS, N… in PHP_FUNCTION()
794 if (outstream == NULL) { in PHP_FUNCTION()
795 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
797 if (outstream != NULL) { in PHP_FUNCTION()
800 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
801 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
803 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
807 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
810 if (outstream == NULL) { in PHP_FUNCTION()
819 if ((ret = ftp_nb_get(ftp, outstream, remote, remote_len, xtype, resumepos)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
820 php_stream_close(outstream); in PHP_FUNCTION()
830 php_stream_close(outstream); in PHP_FUNCTION()