[pLog-svn] r3336 - plog/trunk/class/file
mark at devel.lifetype.net
mark at devel.lifetype.net
Fri May 5 04:48:52 GMT 2006
Author: mark
Date: 2006-05-05 04:48:51 +0000 (Fri, 05 May 2006)
New Revision: 3336
Modified:
plog/trunk/class/file/file.class.php
Log:
Fixed a bug that elena reported here: http://forums.lifetype.net/viewtopic.php?t=4500&postdays=0&postorder=asc&start=0
Modified: plog/trunk/class/file/file.class.php
===================================================================
--- plog/trunk/class/file/file.class.php 2006-05-05 04:05:32 UTC (rev 3335)
+++ plog/trunk/class/file/file.class.php 2006-05-05 04:48:51 UTC (rev 3336)
@@ -368,7 +368,12 @@
$outFile = $inFile;
$inFile = $this->_fileName;
}
-
+
+ // Checkt the $inFile and $outFile are the same file or not
+ if ( realpath( dirname( $inFile ) ) == realpath( dirname( $outFile ) ) &&
+ basename( $inFile ) == basename( $outFile ) )
+ return true;
+
// In order to work around the bug in php versions older
// than 4.3.3, where rename will not work across different
// partitions, this will be a copy and delete of the original file
More information about the pLog-svn
mailing list