|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78281 output mismatch
Submitted: 2019-07-12 19:49 UTC Modified: 2019-08-07 06:52 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Duplicate Package: Scripting Engine problem
PHP Version: 7.4.0alpha3 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: v-altruo at microsoft dot com
New email:
PHP Version: OS:


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

Failed Test Location: ext\standard\tests\file\bug49047.phpt

Test script:
// fopen with interesting windows paths.
$testdir = __DIR__ . '/bug47177.tmpdir';
$t = time() - 3600;
touch($testdir, $t);
$t2 = filemtime($testdir);
if ($t2 != $t) echo "failed (got $t2, expecting $t)\n";
echo "Ok.";

Expected result:

Actual result:
failed (got 2133437328, expecting 1562957009)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 10:17 UTC]
-Status: Open +Status: Duplicate -Package: Testing related +Package: Scripting Engine problem -Assigned To: +Assigned To: cmb
 [2019-07-13 10:17 UTC]
This bug has the same cause as bug #78282, so I'm closing as
 [2019-08-06 23:28 UTC] v-altruo at microsoft dot com
This test still fails for PHP-7.2.21 and PHP-7.3.8 for x86 only regardless of opcache on/off. 

There is a slight difference though. 

An output for 7.2.21:
failed (got -34, expecting 1565129706)

An output for 7.3.8:
failed (got -185, expecting 1565129706)

Running each one multiple times gave different values that were "got x". The value always increased, but not by a set amount.
 [2019-08-07 06:52 UTC]
This bug will be fixed in PHP 7.2.22 and 7.3.9 (and has already been fixed in 7.4.0beta1).
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 05:01:29 2024 UTC