|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73618 Request Feature: Change "Creation Date" time on Windows
Submitted: 2016-11-28 16:59 UTC Modified: 2020-04-09 10:01 UTC
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: David at Refoua dot me Assigned:
Status: Suspended Package: Filesystem function related
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: David at Refoua dot me
New email:
PHP Version: OS:


 [2016-11-28 16:59 UTC] David at Refoua dot me
As stated in several questions like this:

We would like a feature for PHP's touch() function on Windows to also modify the "creation time" alongside last modification and access time, which php already supports.

If PHP is internally using Windows APIs such as "windows.h", this can be *easily* managed by doing something like this:

This feature would be really useful for Windows CLI PHP application developers, like me for instance. Also, it's really easy to do so.

I'd really appreciate php devs to implement this! :)

Test script:
<?php  touch('exaple-dir', 1480352303);  ?>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-29 12:33 UTC]
-Package: Win32API related +Package: Filesystem function related
 [2020-04-09 10:01 UTC]
-Status: Open +Status: Suspended
 [2020-04-09 10:01 UTC]
This is certainly controversial, since, to my knowledge, the same
would not be possible on other OSs.  Therefore this feature
requires discussion (maybe adding a dedicated function instead of
another touch() parameter would be more sensible, if at all), but
this bug tracker is not suitable for that kind of discussions. So
please bring that up on the internals mailing list[1].  For the
time being, I'm suspending this feature request.

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 07:01:31 2024 UTC