Browse Source

BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option.

PHP-5.0
Sara Golemon 22 years ago
parent
commit
cceecdbcdb
  1. 1
      ext/standard/ftp_fopen_wrapper.c

1
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;
}

Loading…
Cancel
Save