From: Ilia Alshanetsky Date: Sun, 27 Mar 2005 15:53:30 +0000 (+0000) Subject: MFH: revert copy patch. X-Git-Tag: php-5.0.4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=805a5965429b966f2d91a6135a46196ca47c3f91;p=php MFH: revert copy patch. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 5178ac6e2e..6ef83af5e8 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1619,12 +1619,6 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC) { php_stream *srcstream = NULL, *deststream = NULL; int ret = FAILURE; - struct stat src_s, dest_s; - - /* safety check to ensure that source & destination files are not the same file */ - if (stat(src, &src_s) || (stat(dest, &dest_s) == 0 && src_s.st_ino == dest_s.st_ino)) { - return ret; - } srcstream = php_stream_open_wrapper(src, "rb", STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS, NULL);