Bug #78430 [Opn->Dup]: touch() with timestamp not setting "last modified" date

From: Date: Tue, 20 Aug 2019 16:07:14 +0000
Subject: Bug #78430 [Opn->Dup]: touch() with timestamp not setting "last modified" date
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222328@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78430&edit=1 ID: 78430 Updated by: cmb@php.net Reported by: t dot steufmehl at enfokus dot de Summary: touch() with timestamp not setting "last modified" date -Status: Open +Status: Duplicate Type: Bug Package: Filesystem function related Operating System: Windows Server 2012 PHP Version: 7.3.8 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This is a duplicate of bug #78381 (bug will be fixed in PHP 7.3.9). Previous Comments: ------------------------------------------------------------------------ [2019-08-20 15:53:49] t dot steufmehl at enfokus dot de Description: ------------ When calling touch() with a timestamp on Windows Server 2012 with IIS 8 (using "php-cgi.exe" of "php-7.3.8-nts-Win32-VC15-x86"), the generated file does not have a "last modified" date. - When executing the test script through CLI ("php.exe"), the "last modified" date of the file is being set properly. - When calling touch() without a timestamp, the "last modified" date is properly being set to the current datetime. - With php 7.3.6 ("php-7.3.6-nts-Win32-VC15-x86") it works as expected. Test script: --------------- <?php touch('test.txt', time() + (60 * 60)); Expected result: ---------------- The file "test.txt" should have a last modified date that is one hour in the future. Actual result: -------------- The file "test.txt" does not have a last modified date. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78430&edit=1

« previous php.bugs (#222328) next »