#16835 [Com]: Touch function can't modify the date/time of a file
| From: | donald at design dot za dot net | Date: | Mon, 16 Sep 2002 16:02:47 +0000 |
| Subject: | #16835 [Com]: Touch function can't modify the date/time of a file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19473@lists.php.net to get a copy of this message | ||
ID: 16835
Comment by: donald@design.za.net
Reported By: v.marco@libero.it
Status: Closed
Bug Type: Filesystem function related
Operating System: Windows
PHP Version: 4.2.0
New Comment:
I am still getting the problem in version 4.2.3
touch() will not update my file time..
<?php
$f = "./test";
touch($f);
echo filectime($f)."<br>";
?>
always returns the same value in windows, but on a unix platform the
time does change.
Previous Comments:
------------------------------------------------------------------------
[2002-05-10 15:49:56] derick@php.net
Fixed
------------------------------------------------------------------------
[2002-05-05 03:19:09] derick@php.net
This should be fixed, can you try a windows snapshot (stable branch)
from snaps.php.net/win32 ?
Derick
------------------------------------------------------------------------
[2002-05-05 01:57:47] e9626334@stud3.tuwien.ac.at
I believe this may be a symptom of the same bug: on FreeBSD 4.5-RELEASE
(x86), PHP 4.2.0's touch() function, at least when being called without
the optional time argument, sets a wrong date on touched files. In my
case, it's April 23, 1991(!). My system date _is_ correct; and touch(1)
does work fine.
This problem is 100% reproducible and did not exist in PHP 4.1.2 or any
previous 4.x releases.
------------------------------------------------------------------------
[2002-04-25 18:02:08] v.marco@libero.it
Touch function can't modify the date/time of a file.
When try to call that function PHP always reply with:
Warning: utime failed: Invalid argument in d:\....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16835&edit=1