Req #73618 [Opn->Sus]: Request Feature: Change "Creation Date" time on Windows

From: Date: Thu, 09 Apr 2020 10:01:19 +0000
Subject: Req #73618 [Opn->Sus]: Request Feature: Change "Creation Date" time on Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226506@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73618&edit=1 ID: 73618 Updated by: cmb@php.net Reported by: David at Refoua dot me Summary: Request Feature: Change "Creation Date" time on Windows -Status: Open +Status: Suspended Type: Feature/Change Request Package: Filesystem function related Operating System: Windows PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [2016-11-28 16:59:54] 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); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73618&edit=1

« previous php.bugs (#226506) next »