|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-14 10:58 UTC] sniper@php.net
[2006-01-15 00:15 UTC] nlopess@php.net
[2006-01-15 18:30 UTC] nlopess@php.net
[2006-04-15 21:16 UTC] tony2001@php.net
[2006-04-16 03:03 UTC] pollita@php.net
[2007-09-05 13:54 UTC] jani@php.net
[2008-07-13 16:11 UTC] jani@php.net
[2009-03-04 10:03 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ <?php touch('non-existing-file'); ?> - Correct. Creates a new file. <?php touch('existing-file'); ?> - Correct. Changes file's mtime. <?php touch('existing-directory'); ?> - Wrong on Win2K. Does not change directory's mtime. Correct on Linux. I did not test any other Win32 platforms. Filesystem: NTFS. The user running the script owns 'existing-directory'. safe_mode=Off. Reproduce code: --------------- <?php touch('existing-directory'); ?> Expected result: ---------------- Change mtime of an existing directory. Actual result: -------------- Utime failed: Permission denied in <fullpath/to/existing-directory> on line 1