From: Marcus Boerger Date: Tue, 5 Nov 2002 11:17:45 +0000 (+0000) Subject: silence X-Git-Tag: php-4.3.0RC1~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfb7162a83e4757c12e82786829a87d8c7c2126;p=php silence #when i get this code right tmp_line is not initialised, too. #Therefore php_stream_wrapper_log_error() will be called with #undefined value, will it? --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index e852c9a923..d961a4b1e1 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -162,8 +162,10 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch resource->port = 21; stream = php_stream_sock_open_host(resource->host, resource->port, SOCK_STREAM, NULL, 0); - if (stream == NULL) + if (stream == NULL) { + result = 0; /* silence */ goto errexit; + } php_stream_context_set(stream, context); php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0);