Lines Matching refs:startpos
855 zend_long mode=FTPTYPE_IMAGE, startpos=0; in PHP_FUNCTION() local
859 …RGS(), "Osr|ll", &z_ftp, php_ftp_ce, &remote, &remote_len, &z_file, &mode, &startpos) == FAILURE) { in PHP_FUNCTION()
867 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
868 startpos = 0; in PHP_FUNCTION()
871 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
873 if (startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
874 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
875 if (startpos < 0) { in PHP_FUNCTION()
876 startpos = 0; in PHP_FUNCTION()
879 if (startpos) { in PHP_FUNCTION()
880 php_stream_seek(stream, startpos, SEEK_SET); in PHP_FUNCTION()
884 if (!ftp_put(ftp, remote, remote_len, stream, xtype, startpos)) { in PHP_FUNCTION()
903 zend_long mode=FTPTYPE_IMAGE, startpos=0; in PHP_FUNCTION() local
907 …RGS(), "Osr|ll", &z_ftp, php_ftp_ce, &remote, &remote_len, &z_file, &mode, &startpos) == FAILURE) { in PHP_FUNCTION()
915 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
916 startpos = 0; in PHP_FUNCTION()
919 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
921 if (startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
922 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
923 if (startpos < 0) { in PHP_FUNCTION()
924 startpos = 0; in PHP_FUNCTION()
927 if (startpos) { in PHP_FUNCTION()
928 php_stream_seek(stream, startpos, SEEK_SET); in PHP_FUNCTION()
936 if (((ret = ftp_nb_put(ftp, remote, remote_len, stream, xtype, startpos)) == PHP_FTP_FAILED)) { in PHP_FUNCTION()
956 zend_long mode=FTPTYPE_IMAGE, startpos=0; in PHP_FUNCTION() local
959 …|ll", &z_ftp, php_ftp_ce, &remote, &remote_len, &local, &local_len, &mode, &startpos) == FAILURE) { in PHP_FUNCTION()
970 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
971 startpos = 0; in PHP_FUNCTION()
974 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
976 if (startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
977 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
978 if (startpos < 0) { in PHP_FUNCTION()
979 startpos = 0; in PHP_FUNCTION()
982 if (startpos) { in PHP_FUNCTION()
983 php_stream_seek(instream, startpos, SEEK_SET); in PHP_FUNCTION()
987 if (!ftp_put(ftp, remote, remote_len, instream, xtype, startpos)) { in PHP_FUNCTION()
1042 zend_long mode=FTPTYPE_IMAGE, startpos=0, ret; in PHP_FUNCTION() local
1045 …|ll", &z_ftp, php_ftp_ce, &remote, &remote_len, &local, &local_len, &mode, &startpos) == FAILURE) { in PHP_FUNCTION()
1056 if (!ftp->autoseek && startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1057 startpos = 0; in PHP_FUNCTION()
1060 if (ftp->autoseek && startpos) { in PHP_FUNCTION()
1062 if (startpos == PHP_FTP_AUTORESUME) { in PHP_FUNCTION()
1063 startpos = ftp_size(ftp, remote, remote_len); in PHP_FUNCTION()
1064 if (startpos < 0) { in PHP_FUNCTION()
1065 startpos = 0; in PHP_FUNCTION()
1068 if (startpos) { in PHP_FUNCTION()
1069 php_stream_seek(instream, startpos, SEEK_SET); in PHP_FUNCTION()
1077 ret = ftp_nb_put(ftp, remote, remote_len, instream, xtype, startpos); in PHP_FUNCTION()