cvs: php-src(PHP_5_0) /ext/standard file.c
| From: | Ilia Alshanetsky | Date: | Sun, 27 Mar 2005 15:53:30 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31128@lists.php.net to get a copy of this message | ||
iliaa Sun Mar 27 10:53:30 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/standard file.c
Log:
MFH: revert copy patch.
http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.382.2.7&r2=1.382.2.8&ty=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.382.2.7 php-src/ext/standard/file.c:1.382.2.8
--- php-src/ext/standard/file.c:1.382.2.7 Mon Mar 21 03:40:54 2005
+++ php-src/ext/standard/file.c Sun Mar 27 10:53:30 2005
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.382.2.7 2005/03/21 08:40:54 hyanantha Exp $ */
+/* $Id: file.c,v 1.382.2.8 2005/03/27 15:53:30 iliaa Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1619,12 +1619,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);