]> granicus.if.org Git - php/commitdiff
BugFix# 27982: Provide error message when trying to overwrite an existant file withou...
authorSara Golemon <pollita@php.net>
Mon, 17 May 2004 20:31:59 +0000 (20:31 +0000)
committerSara Golemon <pollita@php.net>
Mon, 17 May 2004 20:31:59 +0000 (20:31 +0000)
ext/standard/ftp_fopen_wrapper.c

index 303255065443de29df9aea79187107cce0d37786..15e6c64385574db9f78237b4026734c89f31d5d4 100644 (file)
@@ -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;
                        }