Skip to content

Commit f95651e

Browse files
author
Ilia Alshanetsky
committed
revert copy patch.
1 parent e707137 commit f95651e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/standard/file.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,12 +1700,6 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC)
17001700
{
17011701
php_stream *srcstream = NULL, *deststream = NULL;
17021702
int ret = FAILURE;
1703-
struct stat src_s, dest_s;
1704-
1705-
/* safety check to ensure that source & destination files are not the same file */
1706-
if (stat(src, &src_s) || (stat(dest, &dest_s) == 0 && src_s.st_ino == dest_s.st_ino)) {
1707-
return ret;
1708-
}
17091703

17101704
srcstream = php_stream_open_wrapper(src, "rb", STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS, NULL);
17111705

0 commit comments

Comments
 (0)