|  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: 2016-11-29 12:33 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: Open Package: Filesystem function related
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 23:01:27 2019 UTC