Lines Matching refs:outstream

855 	php_stream	*outstream;  in PHP_FUNCTION()  local
877outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", ENFORCE_SAFE_MOD… in PHP_FUNCTION()
878 if (outstream == NULL) { in PHP_FUNCTION()
879outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", ENFORCE_SAFE_MODE … in PHP_FUNCTION()
881 if (outstream != NULL) { in PHP_FUNCTION()
884 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
885 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
887 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
891outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", ENFORCE_SAFE_MODE … in PHP_FUNCTION()
894 if (outstream == NULL) { in PHP_FUNCTION()
899 if (!ftp_get(ftp, outstream, remote, xtype, resumepos TSRMLS_CC)) { in PHP_FUNCTION()
900 php_stream_close(outstream); in PHP_FUNCTION()
906 php_stream_close(outstream); in PHP_FUNCTION()
918 php_stream *outstream; in PHP_FUNCTION() local
938outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "rt+" : "rb+", ENFORCE_SAFE_MOD… in PHP_FUNCTION()
939 if (outstream == NULL) { in PHP_FUNCTION()
940outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", ENFORCE_SAFE_MODE … in PHP_FUNCTION()
942 if (outstream != NULL) { in PHP_FUNCTION()
945 php_stream_seek(outstream, 0, SEEK_END); in PHP_FUNCTION()
946 resumepos = php_stream_tell(outstream); in PHP_FUNCTION()
948 php_stream_seek(outstream, resumepos, SEEK_SET); in PHP_FUNCTION()
952outstream = php_stream_open_wrapper(local, mode == FTPTYPE_ASCII ? "wt" : "wb", ENFORCE_SAFE_MODE … in PHP_FUNCTION()
955 if (outstream == NULL) { in PHP_FUNCTION()
964 if ((ret = ftp_nb_get(ftp, outstream, remote, xtype, resumepos TSRMLS_CC)) == PHP_FTP_FAILED) { in PHP_FUNCTION()
965 php_stream_close(outstream); in PHP_FUNCTION()
972 php_stream_close(outstream); in PHP_FUNCTION()