diff options
author | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 |
commit | 32b5f8a1a3552f48d6e91c17b6d9d441c665a44d (patch) | |
tree | a6490eaed671ea190f7876994b35169200ff2df8 /ext/ftp/php_ftp.c | |
parent | a311dc244353f0ed88a273056224ee5c97cc4011 (diff) | |
download | php-git-32b5f8a1a3552f48d6e91c17b6d9d441c665a44d.tar.gz |
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index e62243e949..6c44733fed 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -607,7 +607,7 @@ PHP_FUNCTION(ftp_chmod) int filename_len; long mode; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rls", &z_ftp, &mode, &filename, &filename_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlp", &z_ftp, &mode, &filename, &filename_len) == FAILURE) { RETURN_FALSE; } @@ -660,7 +660,7 @@ PHP_FUNCTION(ftp_nlist) char **nlist, **ptr, *dir; int dir_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp", &z_ftp, &dir, &dir_len) == FAILURE) { return; } @@ -857,7 +857,7 @@ PHP_FUNCTION(ftp_get) int local_len, remote_len; long mode, resumepos=0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssl|l", &z_ftp, &local, &local_len, &remote, &remote_len, &mode, &resumepos) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rppl|l", &z_ftp, &local, &local_len, &remote, &remote_len, &mode, &resumepos) == FAILURE) { return; } @@ -1124,7 +1124,7 @@ PHP_FUNCTION(ftp_put) long mode, startpos=0; php_stream *instream; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssl|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) { return; } @@ -1177,7 +1177,7 @@ PHP_FUNCTION(ftp_nb_put) long mode, startpos=0; php_stream *instream; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssl|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) { return; } @@ -1233,7 +1233,7 @@ PHP_FUNCTION(ftp_size) char *file; int file_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &file, &file_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp", &z_ftp, &file, &file_len) == FAILURE) { return; } @@ -1253,7 +1253,7 @@ PHP_FUNCTION(ftp_mdtm) char *file; int file_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &file, &file_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp", &z_ftp, &file, &file_len) == FAILURE) { return; } |