mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option.
This commit is contained in:
parent
427561446f
commit
cceecdbcdb
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue