summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-27 15:53:59 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-03-27 15:53:59 +0000
commit0674cfae43bc2db1bee10a0c00b76276eed0e2e8 (patch)
treeecdc1fa95e21529c4199f475657c18eb58ba1a06
parent3ae4e310641928f9409c10e00dc98401b6351630 (diff)
downloadphp-git-0674cfae43bc2db1bee10a0c00b76276eed0e2e8.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 1d688cfe8d..b1ad6f742d 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -2141,12 +2141,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,