#30164 [Opn]: touch won't change symbolic links
| From: | mave at clanteamtreff dot com | Date: | Mon, 20 Sep 2004 09:10:02 +0000 |
| Subject: | #30164 [Opn]: touch won't change symbolic links | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66440@lists.php.net to get a copy of this message | ||
ID: 30164
User updated by: mave at clanteamtreff dot com
Reported By: mave at clanteamtreff dot com
Status: Open
Bug Type: Filesystem function related
Operating System: Linux ( Debian 3.0 r2 )
PHP Version: 5.0.0
New Comment:
Symbolic Links dont work also with the Funktions :
bool chgrp ( string filename, mixed group)
bool chmod ( string filename, int mode
bool chown ( string filename, mixed user)
...
Previous Comments:
------------------------------------------------------------------------
[2004-09-20 10:49:31] mave at clanteamtreff dot com
Description:
------------
the command
bool touch ( string filename [, int time [, int atime]])
only works with regular files. I have to change some times on Symbolik
links. The OS Cmd touch can also change times of Symbolik links.
Currently i use this, but it issnt really good.
(sorry for my bad english, i hope you understand it)
Reproduce code:
---------------
<?php
// This works
$FileName = "/path/file";
touch($FileName, mktime(0,0,0,1,1,1990) );
// This dont works
$FileName = "/path/link";
touch($FileName, mktime(0,0,0,1,1,1990) );
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30164&edit=1