com php-src: Default ftp_append() mode to FTPTYPE _IMAGE: ext/ftp/php_ftp.c

From: Date: Wed, 02 Aug 2017 18:54:32 +0000
Subject: com php-src: Default ftp_append() mode to FTPTYPE _IMAGE: ext/ftp/php_ftp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98928@lists.php.net to get a copy of this message
Commit: 27c225a5ad63b167615fcf8123874948950648a4 Author: Andreas Treichel <gmblar+github@gmail.com> Wed, 2 Aug 2017 19:26:29 +0200 Committer: Nikita Popov <nikita.ppv@gmail.com> Wed, 2 Aug 2017 20:54:32 +0200 Parents: 902188e5e3889886d609696a7b5ed8ac12e071e2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=27c225a5ad63b167615fcf8123874948950648a4 Log: Default ftp_append() mode to FTPTYPE_IMAGE To be consistent with other ftp_*() functions in master. Changed paths: M ext/ftp/php_ftp.c Diff: diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 849e11b..3e4e842 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1280,7 +1280,7 @@ PHP_FUNCTION(ftp_put) } /* }}} */ -/* {{{ proto bool ftp_append(resource stream, string remote_file, string local_file, int mode) +/* {{{ proto bool ftp_append(resource stream, string remote_file, string local_file [, int mode]) Append content of a file a another file on the FTP server */ PHP_FUNCTION(ftp_append) { @@ -1289,10 +1289,10 @@ PHP_FUNCTION(ftp_append) ftptype_t xtype; char *remote, *local; size_t remote_len, local_len; - zend_long mode; + zend_long mode=FTPTYPE_IMAGE; php_stream *instream; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rppl", &z_ftp, &remote, &remote_len, &local, &local_len, &mode) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "rpp|l", &z_ftp, &remote, &remote_len, &local, &local_len, &mode) == FAILURE) { return; }

« previous php.cvs (#98928) next »