iliaa Sun Mar 27 10:52:49 2005 EDT Modified files: /php-src/ext/standard file.c Log: revert copy patch. http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.404&r2=1.405&ty=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.404 php-src/ext/standard/file.c:1.405 --- php-src/ext/standard/file.c:1.404 Mon Mar 7 17:10:08 2005 +++ php-src/ext/standard/file.c Sun Mar 27 10:52:49 2005 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.404 2005/03/07 22:10:08 helly Exp $ */ +/* $Id: file.c,v 1.405 2005/03/27 15:52:49 iliaa Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1700,12 +1700,6 @@ { 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php