summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-27 15:52:49 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2005-03-27 15:52:49 (GMT)
commitf95651e33866c85cc8df7bf81f59bb269a25601a (patch)
treef4e6531670996362c93a5e397965d5dcaa30372d /ext
parente707137ed3357252f9c078a96f06a7e1d872b66c (diff)
downloadphp-f95651e33866c85cc8df7bf81f59bb269a25601a.tar.gz
revert copy patch.
Diffstat (limited to 'ext')
-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 8634f88..5b98c05 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1700,12 +1700,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);