Lines Matching refs:outstream
684 php_stream *outstream; in PHP_FUNCTION() local
705 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", REPORT_ERRORS, N… in PHP_FUNCTION()
706 if (outstream == NULL) { in PHP_FUNCTION()
707 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
709 if (outstream != NULL) { in PHP_FUNCTION()
712 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
713 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
715 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
719 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
722 if (outstream == NULL) { in PHP_FUNCTION()
727 if (!ftp_get(ftp, outstream, remote, remote_len, xtype, resumepos)) { in PHP_FUNCTION()
728 php_stream_close(outstream); in PHP_FUNCTION()
736 php_stream_close(outstream); in PHP_FUNCTION()
747 php_stream *outstream; in PHP_FUNCTION() local
767 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", REPORT_ERRORS, N… in PHP_FUNCTION()
768 if (outstream == NULL) { in PHP_FUNCTION()
769 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
771 if (outstream != NULL) { in PHP_FUNCTION()
774 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
775 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
777 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
781 …outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", REPORT_ERRORS, NUL… in PHP_FUNCTION()
784 if (outstream == NULL) { in PHP_FUNCTION()
793 if ((ret = ftp_nb_get(ftp, outstream, remote, remote_len, xtype, resumepos)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
794 php_stream_close(outstream); in PHP_FUNCTION()
804 php_stream_close(outstream); in PHP_FUNCTION()