diff options
author | David Hill <ddhill@php.net> | 2003-03-06 23:07:28 +0000 |
---|---|---|
committer | David Hill <ddhill@php.net> | 2003-03-06 23:07:28 +0000 |
commit | 5c90216d2ce8d8cc8d1453eee1a1e5099bd46631 (patch) | |
tree | 588ccc95099ca43c0bf46f8078fcb77fefa2f765 /ext/ftp/php_ftp.c | |
parent | 0338111950edcec427cfa2f1610dd6efcd43a14c (diff) | |
download | php-git-5c90216d2ce8d8cc8d1453eee1a1e5099bd46631.tar.gz |
64-bit correction to variables passed to zend_parse_parameters
@64-bit correction to variables passed to zend_parse_parameters (Dave)
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index b5a5711da3..68606d2dc7 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -151,7 +151,8 @@ PHP_FUNCTION(ftp_connect) { ftpbuf_t *ftp; char *host; - int host_len, port = 0; + int host_len; + long port = 0; long timeout_sec = FTP_DEFAULT_TIMEOUT; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) { @@ -186,7 +187,8 @@ PHP_FUNCTION(ftp_ssl_connect) { ftpbuf_t *ftp; char *host; - int host_len, port = 0; + int host_len; + long port = 0; long timeout_sec = FTP_DEFAULT_TIMEOUT; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) { |