summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-08-25 22:17:56 +0000
committerSebastian Bergmann <sebastian@php.net>2002-08-25 22:17:56 +0000
commite8b50bc834a149520060bce53ed11cb886ab0eb1 (patch)
treedc2d555c93f79afc1ee26ba518ea184e3bbe72f4 /ext
parentddddf398afaf5fc9f88126403a92342e03c33f59 (diff)
downloadphp-git-e8b50bc834a149520060bce53ed11cb886ab0eb1.tar.gz
Fix ZTS build.
Diffstat (limited to 'ext')
-rw-r--r--ext/ftp/ftp.c4
-rw-r--r--ext/ftp/ftp.h2
-rw-r--r--ext/ftp/php_ftp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 8274c7ee2e..6c7644f243 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -102,7 +102,7 @@ union ipbox {
/* {{{ ftp_open
*/
ftpbuf_t*
-ftp_open(const char *host, short port, long timeout_sec)
+ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC)
{
ftpbuf_t *ftp;
int size;
@@ -119,7 +119,7 @@ ftp_open(const char *host, short port, long timeout_sec)
tv.tv_sec = timeout_sec;
tv.tv_usec = 0;
- ftp->fd = php_hostconnect(host, (unsigned short) (port ? port : 21), SOCK_STREAM, &tv);
+ ftp->fd = php_hostconnect(host, (unsigned short) (port ? port : 21), SOCK_STREAM, &tv TSRMLS_CC);
if (ftp->fd == -1) {
goto bail;
}
diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h
index a770dfc4e2..40cab76a1e 100644
--- a/ext/ftp/ftp.h
+++ b/ext/ftp/ftp.h
@@ -81,7 +81,7 @@ typedef struct ftpbuf
/* open a FTP connection, returns ftpbuf (NULL on error)
* port is the ftp port in network byte order, or 0 for the default
*/
-ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec);
+ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC);
/* quits from the ftp session (it still needs to be closed)
* return true on success, false on error
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c
index a279ed81fc..5aeaa9cca5 100644
--- a/ext/ftp/php_ftp.c
+++ b/ext/ftp/php_ftp.c
@@ -145,7 +145,7 @@ PHP_FUNCTION(ftp_connect)
}
/* connect */
- ftp = ftp_open(host, (short)port, timeout_sec);
+ ftp = ftp_open(host, (short)port, timeout_sec TSRMLS_CC);
if (ftp == NULL) {
RETURN_FALSE;
}