diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-13 01:40:46 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-13 01:40:46 +0000 |
| commit | b855893b0c8f1ee0f9f57d4d76941830718d959f (patch) | |
| tree | 6d6c440fca5a4ac6130d69de9119284fcd5307db | |
| parent | 3a8c49afc178ec74bbf60309147b3af477fa60b2 (diff) | |
| download | php-git-b855893b0c8f1ee0f9f57d4d76941830718d959f.tar.gz | |
Fixed ZTS build
Fixed 2 ZTS related warnings
| -rw-r--r-- | ext/ftp/ftp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 65d0a6d7fe..91e963a578 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -226,6 +226,8 @@ ftp_login(ftpbuf_t *ftp, const char *user, const char *pass) { #if HAVE_OPENSSL_EXT SSL_CTX *ctx = NULL; + + TSRMLS_FETCH(); #endif if (ftp == NULL) return 0; @@ -1346,11 +1348,13 @@ bail: databuf_t* data_accept(databuf_t *data, ftpbuf_t *ftp) { + php_sockaddr_storage addr; + int size; + #if HAVE_OPENSSL_EXT SSL_CTX *ctx; + TSRMLS_FETCH(); #endif - php_sockaddr_storage addr; - int size; if (data->fd != -1) goto data_accepted; @@ -1549,7 +1553,6 @@ ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t typ { databuf_t *data = NULL; char arg[11]; - TSRMLS_FETCH(); if (ftp == NULL) goto bail; @@ -1666,7 +1669,6 @@ ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type { databuf_t *data = NULL; char arg[11]; - TSRMLS_FETCH(); if (ftp == NULL) return 0; |
