summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-27 15:53:30 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-03-27 15:53:30 +0000
commit805a5965429b966f2d91a6135a46196ca47c3f91 (patch)
tree20d4ec1ce99cfc9222dcb84ab868c876dbf584c4
parent5663cf0e813c051cde6433e0b144f94159925922 (diff)
downloadphp-git-805a5965429b966f2d91a6135a46196ca47c3f91.tar.gz
MFH: revert copy patch.
-rw-r--r--ext/standard/file.c6
1 files changed, 0 insertions, 6 deletions
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);