Diff for /embedaddon/php/ext/ftp/php_ftp.c between versions 1.1.1.2 and 1.1.1.4

version 1.1.1.2, 2012/05/29 12:34:39 version 1.1.1.4, 2013/10/14 08:02:19
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | PHP Version 5                                                        |     | PHP Version 5                                                        |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1997-2012 The PHP Group                                |   | Copyright (c) 1997-2013 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 784  PHP_FUNCTION(ftp_nb_fget) Line 784  PHP_FUNCTION(ftp_nb_fget)
         ftptype_t       xtype;          ftptype_t       xtype;
         php_stream      *stream;          php_stream      *stream;
         char            *file;          char            *file;
        int             file_len, ret;        int             file_len;
        long            mode, resumepos=0;        long            mode, resumepos=0, ret;
   
         if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rrsl|l", &z_ftp, &z_file, &file, &file_len, &mode, &resumepos) == FAILURE) {          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rrsl|l", &z_ftp, &z_file, &file, &file_len, &mode, &resumepos) == FAILURE) {
                 return;                  return;
Line 968  PHP_FUNCTION(ftp_nb_get) Line 968  PHP_FUNCTION(ftp_nb_get)
                 RETURN_LONG(PHP_FTP_FAILED);                  RETURN_LONG(PHP_FTP_FAILED);
         }          }
   
        if (ret == PHP_FTP_FINISHED) {        php_stream_close(outstream);
                php_stream_close(outstream); 
        } 
   
         RETURN_LONG(ret);          RETURN_LONG(ret);
 }  }
Line 982  PHP_FUNCTION(ftp_nb_continue) Line 980  PHP_FUNCTION(ftp_nb_continue)
 {  {
         zval            *z_ftp;          zval            *z_ftp;
         ftpbuf_t        *ftp;          ftpbuf_t        *ftp;
        int                ret;        long                ret;
   
         if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &z_ftp) == FAILURE) {          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &z_ftp) == FAILURE) {
                 return;                  return;
Line 1120  PHP_FUNCTION(ftp_put) Line 1118  PHP_FUNCTION(ftp_put)
         ftpbuf_t        *ftp;          ftpbuf_t        *ftp;
         ftptype_t       xtype;          ftptype_t       xtype;
         char            *remote, *local;          char            *remote, *local;
        int                remote_len, local_len;        long                remote_len, local_len;
         long            mode, startpos=0;          long            mode, startpos=0;
         php_stream      *instream;          php_stream      *instream;
   
Line 1173  PHP_FUNCTION(ftp_nb_put) Line 1171  PHP_FUNCTION(ftp_nb_put)
         ftpbuf_t        *ftp;          ftpbuf_t        *ftp;
         ftptype_t       xtype;          ftptype_t       xtype;
         char            *remote, *local;          char            *remote, *local;
        int             remote_len, local_len, ret;        int             remote_len, local_len;
        long            mode, startpos=0;        long            mode, startpos=0, ret;
         php_stream      *instream;          php_stream      *instream;
   
         if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rppl|l", &z_ftp, &remote, &remote_len, &local, &local_len, &mode, &startpos) == FAILURE) {          if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rppl|l", &z_ftp, &remote, &remote_len, &local, &local_len, &mode, &startpos) == FAILURE) {

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


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