php.net |  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
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:49 UTC] v-altruo at microsoft dot com
Description:
------------
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:
---------------
<?php
// fopen with interesting windows paths.
$testdir = __DIR__ . '/bug47177.tmpdir';
mkdir($testdir);
$t = time() - 3600;
touch($testdir, $t);
clearstatcache();
$t2 = filemtime($testdir);
if ($t2 != $t) echo "failed (got $t2, expecting $t)\n";
rmdir($testdir);
echo "Ok.";
?>


Expected result:
----------------
Ok.

Actual result:
--------------
failed (got 2133437328, expecting 1562957009)
Ok.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 10:17 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Package: Testing related +Package: Scripting Engine problem -Assigned To: +Assigned To: cmb
 [2019-07-13 10:17 UTC] cmb@php.net
This bug has the same cause as bug #78282, so I'm closing as
duplicate.
 [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] cmb@php.net
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: Sun Dec 22 01:01:30 2024 UTC