php.net |  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
Description:
------------
touch() a directory says
Warning: touch(): Utime failed: Permission denied

It was fixed in 5.3 after
http://bugs.php.net/bug.php?id=49047

It should have been fixed in 5.2 after
http://bugs.php.net/bug.php?id=35980

Only a matter of backporting, if possible

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

Expected result:
----------------
None

Actual result:
--------------
Error shown above

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-24 22:08 UTC] pajoye@php.net
-Status: Open +Status: Wont fix
 [2010-08-24 22:08 UTC] pajoye@php.net
5.2 is for critical fixes only. I strongly suggest to update to 5.3, especially as you are on Windows.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC