Diff for /embedaddon/php/ext/ftp/ftp.h between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2013/07/22 01:31:50 version 1.1.1.4, 2013/10/14 08:02:19
Line 146  int  ftp_chmod(ftpbuf_t *ftp, const int mode, const ch Line 146  int  ftp_chmod(ftpbuf_t *ftp, const int mode, const ch
  * however some servers will not accept STOR or APPE until ALLO is confirmed.    * however some servers will not accept STOR or APPE until ALLO is confirmed. 
  * If response is passed, it is estrdup()ed from ftp->inbuf and must be freed   * If response is passed, it is estrdup()ed from ftp->inbuf and must be freed
  * or assigned to a zval returned to the user */   * or assigned to a zval returned to the user */
int             ftp_alloc(ftpbuf_t *ftp, const int size, char **response);int             ftp_alloc(ftpbuf_t *ftp, const long size, char **response);
   
 /* returns a NULL-terminated array of filenames in the given path  /* returns a NULL-terminated array of filenames in the given path
  * or NULL on error.  the return array must be freed (but don't   * or NULL on error.  the return array must be freed (but don't
Line 169  int  ftp_pasv(ftpbuf_t *ftp, int pasv); Line 169  int  ftp_pasv(ftpbuf_t *ftp, int pasv);
 /* retrieves a file and saves its contents to outfp  /* retrieves a file and saves its contents to outfp
  * returns true on success, false on error   * returns true on success, false on error
  */   */
int             ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, int resumepos TSRMLS_DC);int             ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, long resumepos TSRMLS_DC);
   
 /* stores the data from a file, socket, or process as a file on the remote server  /* stores the data from a file, socket, or process as a file on the remote server
  * returns true on success, false on error   * returns true on success, false on error
  */   */
int             ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, int startpos TSRMLS_DC);int             ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, long startpos TSRMLS_DC);
   
 /* returns the size of the given file, or -1 on error */  /* returns the size of the given file, or -1 on error */
int                ftp_size(ftpbuf_t *ftp, const char *path);long                ftp_size(ftpbuf_t *ftp, const char *path);
   
 /* returns the last modified time of the given file, or -1 on error */  /* returns the last modified time of the given file, or -1 on error */
 time_t          ftp_mdtm(ftpbuf_t *ftp, const char *path);  time_t          ftp_mdtm(ftpbuf_t *ftp, const char *path);
Line 194  int  ftp_site(ftpbuf_t *ftp, const char *cmd); Line 194  int  ftp_site(ftpbuf_t *ftp, const char *cmd);
 /* retrieves part of a file and saves its contents to outfp  /* retrieves part of a file and saves its contents to outfp
  * returns true on success, false on error   * returns true on success, false on error
  */   */
int             ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, int resumepos TSRMLS_DC);int             ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, long resumepos TSRMLS_DC);
   
 /* stores the data from a file, socket, or process as a file on the remote server  /* stores the data from a file, socket, or process as a file on the remote server
  * returns true on success, false on error   * returns true on success, false on error
  */   */
int             ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, int startpos TSRMLS_DC);int             ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, long startpos TSRMLS_DC);
   
 /* continues a previous nb_(f)get command  /* continues a previous nb_(f)get command
  */   */

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>