php.net |  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
Votes:1
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-11-28 16:59 UTC] David at Refoua dot me
Description:
------------
As stated in several questions like this:
https://stackoverflow.com/q/11148262/1454514

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:
https://stackoverflow.com/a/10041674/1454514

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);  ?>




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-29 12:33 UTC] cmb@php.net
-Package: Win32API related +Package: Filesystem function related
 [2020-04-09 10:01 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2020-04-09 10:01 UTC] cmb@php.net
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] <https://www.php.net/mailing-lists.php#internals>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC