summaryrefslogtreecommitdiff
path: root/ext/standard/ftp_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-18 18:54:32 +0000
committerWez Furlong <wez@php.net>2002-03-18 18:54:32 +0000
commitc9d5e137380893c2608ebe4aefeb46026d5efcef (patch)
tree898f5a7e8894a9fe9f9fdbb0a0fa8080bebbbc72 /ext/standard/ftp_fopen_wrapper.c
parent41c1c084953a6a5024c56df2b79bcb1fad820633 (diff)
downloadphp-git-c9d5e137380893c2608ebe4aefeb46026d5efcef.tar.gz
TSRMLS related work on streams, as discussed with Zeev.
# Should be the last "broad" commit for a while # Don't forget to make clean ; make
Diffstat (limited to 'ext/standard/ftp_fopen_wrapper.c')
-rw-r--r--ext/standard/ftp_fopen_wrapper.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c
index 8cd85b30d2..f204d1549f 100644
--- a/ext/standard/ftp_fopen_wrapper.c
+++ b/ext/standard/ftp_fopen_wrapper.c
@@ -66,7 +66,7 @@
#include "php_fopen_wrappers.h"
-static int php_get_ftp_result(php_stream *stream)
+static int php_get_ftp_result(php_stream *stream TSRMLS_DC)
{
char tmp_line[513];
@@ -85,7 +85,7 @@ php_stream_wrapper php_stream_ftp_wrapper = {
/* {{{ php_fopen_url_wrap_ftp
*/
-php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char **opened_path STREAMS_DC)
+php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC)
{
php_stream *stream=NULL;
php_url *resource=NULL;
@@ -109,7 +109,7 @@ php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char *
goto errexit;
/* Start talking to ftp server */
- result = php_get_ftp_result(stream);
+ result = php_get_ftp_result(stream TSRMLS_CC);
if (result > 299 || result < 200)
goto errexit;
@@ -124,7 +124,7 @@ php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char *
php_stream_write_string(stream, "\r\n");
/* get the response */
- result = php_get_ftp_result(stream);
+ result = php_get_ftp_result(stream TSRMLS_CC);
/* if a password is required, send it */
if (result >= 300 && result <= 399) {
@@ -144,14 +144,14 @@ php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char *
php_stream_write_string(stream, "\r\n");
/* read the response */
- result = php_get_ftp_result(stream);
+ result = php_get_ftp_result(stream TSRMLS_CC);
}
if (result > 299 || result < 200)
goto errexit;
/* set the connection to be binary */
php_stream_write_string(stream, "TYPE I\r\n");
- result = php_get_ftp_result(stream);
+ result = php_get_ftp_result(stream TSRMLS_CC);
if (result > 299 || result < 200)
goto errexit;
@@ -161,7 +161,7 @@ php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char *
php_stream_write_string(stream, "\r\n");
/* read the response */
- result = php_get_ftp_result(stream);
+ result = php_get_ftp_result(stream TSRMLS_CC);
if (mode[0] == 'r') {
/* when reading file, it must exist */
if (result > 299 || result < 200) {