From:             v-altruo at microsoft dot com
Operating system: Windows
PHP version:      7.4.0alpha3
Package:          Testing related
Bug Type:         Bug
Bug description:atime and mtime mismatch

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=78282&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=78282&r=trysnapshot54
Try a snapshot (PHP 5.5):   
https://bugs.php.net/fix.php?id=78282&r=trysnapshot55
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=78282&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=78282&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=78282&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=78282&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=78282&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=78282&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=78282&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=78282&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=78282&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=78282&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=78282&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78282&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=78282&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=78282&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=78282&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78282&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=78282&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=78282&r=mysqlcfg

Reply via email to