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: 2016-11-29 12:33 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: 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
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
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Oct 17 16:01:25 2018 UTC