]> granicus.if.org Git - php/commitdiff
Pass context parameter through to xport_create
authorSara Golemon <pollita@php.net>
Fri, 15 Jul 2005 15:45:43 +0000 (15:45 +0000)
committerSara Golemon <pollita@php.net>
Fri, 15 Jul 2005 15:45:43 +0000 (15:45 +0000)
ext/standard/ftp_fopen_wrapper.c

index 488ddb6c1913d8e0e356d0a659d0a7e05df6d6f3..fe787d937e815f78dc0799e46d95f357b1d1897b 100644 (file)
@@ -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;