|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52690 touch directory
Submitted: 2010-08-24 21:58 UTC Modified: 2010-08-24 22:08 UTC
From: marielyne at acanac dot net Assigned:
Status: Wont fix Package: Filesystem function related
PHP Version: 5.2.14 OS: Windows 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-08-24 21:58 UTC] marielyne at acanac dot net
touch() a directory says
Warning: touch(): Utime failed: Permission denied

It was fixed in 5.3 after

It should have been fixed in 5.2 after

Only a matter of backporting, if possible

Test script:
php.exe -r "mkdir('C:/touched/');touch('C:/touched/');"

Expected result:

Actual result:
Error shown above


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-24 22:08 UTC]
-Status: Open +Status: Wont fix
 [2010-08-24 22:08 UTC]
5.2 is for critical fixes only. I strongly suggest to update to 5.3, especially as you are on Windows.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 11:01:28 2024 UTC