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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marielyne at acanac dot net
New email:
PHP Version: OS:

 

 [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: Tue Apr 16 09:01:28 2024 UTC