Alexey Kulentsov wrote:
> Chuck Anderson wrote:
>
>
>> The file time of the copy on H:/ is unchanged. - ???
>>
>
> Did you try clearstatcache() before getting timestamp second time?
>
Like this?
$dest = 'H:/file1.php';
if (!touch($dest, 1172464466)) echo 'touch failed' ;
clearstatcache();
echo filemtime($dest);
// output = 1172460866 (one hour less ... how maddening)
So ... yes (thanks).
As Jerry pointed out, there is a bug report showing this behavior was
introduced in Php 5.2.1 (in Windows32).
http://bugs.php.net/bug.php?id=40568 And the bug report status is
simply ... suspended. My only resort to keep my backup scripts working
properly was to revert back to Php 4 (or manually copy the backups in
Windows Explorer). I don't see why this bug is being ignored. (And
I've little faith that my "one" vote will affect that status). There is
no work around. I'll have to keep an earlier version of Php to run
twice every year (at the time changes) - or add a switch in my script
that will add or subtract one hour from the desired timestamp.
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
***********************************