php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78282 atime and mtime mismatch
Submitted: 2019-07-12 19:59 UTC Modified: 2019-07-13 07:31 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.4.0alpha3 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: v-altruo at microsoft dot com
New email:
PHP Version: OS:

 

 [2019-07-12 19:59 UTC] v-altruo at microsoft dot com
Description:
------------
Test fails for both NTS/TS regardless of opcache on/off but only for x86. My machine is x64 if that matters.

Failed Test Location: ext\standard\tests\file\touch_basic-win32.phpt

Similar test (touch_basic-win32-mb.phpt) also fails with similar output. 

Expected result:
----------------
*** Testing touch() : basic functionality ***

--- testing touch creates a file ---
bool(true)

 --- testing touch doesn't alter file contents ---
Here is a test line

 --- testing touch alters the correct file metadata ---
stat data differs at atime
stat data differs at mtime

 --- testing touch using all parameters ---
bool(true)
ctime=%d
mtime=10000
atime=20470
Done

Actual result:
--------------
*** Testing touch() : basic functionality ***

--- testing touch creates a file ---
bool(true)

 --- testing touch doesn't alter file contents ---
Here is a test line

 --- testing touch alters the correct file metadata ---
stat data differs at atime
stat data differs at mtime

 --- testing touch using all parameters ---
bool(true)
ctime=1562961318
mtime=121
atime=2133437241
Done

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 07:31 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Testing related +Package: Scripting Engine problem -Assigned To: +Assigned To: cmb
 [2019-07-13 07:31 UTC] cmb@php.net
Thanks for catching this regression, which has been introduced by
improperly fixing bug #78241.
 [2019-07-13 07:45 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bf242d58e77d50d4d8fdaaaca7ede686ec4467c0
Log: Fix #78282: atime and mtime mismatch
 [2019-07-13 07:45 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2019-08-06 15:30 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=954543cec629c3c5d42c2d62228dd68604bb6b19
Log: Fix #78282: atime and mtime mismatch
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC