diff options
author | Sara Golemon <pollita@php.net> | 2005-07-15 15:45:43 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2005-07-15 15:45:43 +0000 |
commit | 67a66b858f7cf1562c72a5c7d7b016daca6ff918 (patch) | |
tree | 85c78890fc1fc1ef9ceb35d65c7f7297c2227617 | |
parent | 384a96faf60cc8f60233172f1f26d9d680ddf930 (diff) | |
download | php-git-67a66b858f7cf1562c72a5c7d7b016daca6ff918.tar.gz |
Pass context parameter through to xport_create
-rw-r--r-- | ext/standard/ftp_fopen_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 488ddb6c19..fe787d937e 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -133,7 +133,7 @@ static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, char *path resource->port = 21; transport_len = spprintf(&transport, 0, "tcp://%s:%d", resource->host, resource->port); - stream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, NULL, NULL, NULL); + stream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, context, NULL, NULL); efree(transport); if (stream == NULL) { result = 0; /* silence */ @@ -542,7 +542,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch hoststart = resource->host; } transport_len = spprintf(&transport, 0, "tcp://%s:%d", hoststart, portno); - datastream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, NULL, NULL, NULL); + datastream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, context, NULL, NULL); efree(transport); if (datastream == NULL) { goto errexit; |