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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 39 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 18:01:28 2024 UTC