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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 + 24 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC