mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user