From: Sara Golemon Date: Mon, 17 May 2004 20:31:59 +0000 (+0000) Subject: BugFix# 27982: Provide error message when trying to overwrite an existant file withou... X-Git-Tag: RELEASE_0_1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cceecdbcdbb24ef85ec64fd5c2524220d3b160e5;p=php BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option. --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 3032550654..15e6c64385 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -457,6 +457,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch goto errexit; } } else { + php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Remote file already exists and overwrite context option not specified."); errno = EEXIST; goto errexit; }