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 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

Pull Requests

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 Dec 21 18:01:29 2024 UTC