Bug #78430 [NEW]: touch() with timestamp not setting "last modified" date
| From: | t dot steufmehl at enfokus dot de | Date: | Tue, 20 Aug 2019 15:53:49 +0000 |
| Subject: | Bug #78430 [NEW]: touch() with timestamp not setting "last modified" date | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222326@lists.php.net to get a copy of this message | ||
From: t dot steufmehl at enfokus dot de
Operating system: Windows Server 2012
PHP version: 7.3.8
Package: Filesystem function related
Bug Type: Bug
Bug description:touch() with timestamp not setting "last modified" date
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 bug report at https://bugs.php.net/bug.php?id=78430&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78430&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78430&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78430&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78430&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78430&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78430&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78430&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78430&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78430&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78430&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78430&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78430&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78430&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78430&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78430&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78430&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78430&r=mysqlcfg