Diff for /embedaddon/php/ext/ftp/ftp.h between versions 1.1 and 1.1.1.5

version 1.1, 2012/02/21 23:47:56 version 1.1.1.5, 2014/06/15 20:03:48
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | PHP Version 5                                                        |     | PHP Version 5                                                        |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1997-2012 The PHP Group                                |   | Copyright (c) 1997-2014 The PHP Group                                |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | This source file is subject to version 3.01 of the PHP license,      |     | This source file is subject to version 3.01 of the PHP license,      |
    | that is bundled with this package in the file LICENSE, and is        |     | that is bundled with this package in the file LICENSE, and is        |
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  
changed lines
  Added in v.1.1.1.5


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