|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-08-20 16:07 UTC] cmb@php.net
-Status: Open
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2019-08-20 16:07 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
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.