php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78551 Iteration Failures
Submitted: 2019-09-16 18:39 UTC Modified: 2019-09-17 17:56 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Assigned Package: Testing related
PHP Version: 7.4.0RC1 OS: Windows Server 2012 R2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-09-16 18:39 UTC] v-altruo at microsoft dot com
Description:
------------
Test fails for both x64/x86 and NTS/TS builds regardless of opcache on/off. 
This test also failed for 7.2.23RC1 and 7.3.10RC1.

Failed Test Location: ext\standard\tests\file\windows_acls\bug44859_4.phpt

Expected result:
----------------
Testing file with relative path:
Iteration #1: passed.
Iteration #2: passed.
Iteration #3: passed.
Iteration #4: passed.
Testing directory with relative path:
Iteration #1: passed.
Iteration #2: passed.
Iteration #3: passed.
Iteration #4: passed.

Actual result:
--------------
Testing file with relative path:
Iteration #1: passed.
Iteration #2: passed.
Iteration #3: passed.
Iteration #4: passed.
Testing directory with relative path:
Iteration #1: passed.
Iteration #2: bool(true)
bool(false)
failed.
Iteration #3: bool(true)
bool(false)
failed.
Iteration #4: passed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-17 07:31 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2019-09-17 07:31 UTC] cmb@php.net
I cannot reproduce this test failure.  I can imagine that the
failure is caused by one or more of the exec() calls in
ext\standard\tests\file\windows_acls\common.inc failing.  For
debugging it might be useful to add an exec() wrapper to that
file:

    function my_exec($cmd) {
        $res = exec($cmd, $output, $status);
        if ($status) {
            echo "FAILED: $cmd\n";
        }
        return $res;
    }

And to replace all exec() calls in common.inc with my_exec().
Could you please check that?
 [2019-09-17 07:51 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2019-09-17 17:56 UTC] v-altruo at microsoft dot com
-Status: Feedback +Status: Assigned
 [2019-09-17 17:56 UTC] v-altruo at microsoft dot com
After making those changes (tested on 7.2.23RC1), the output is still the same: 

Testing file with relative path:
Iteration #1: passed.
Iteration #2: passed.
Iteration #3: passed.
Iteration #4: passed.
Testing directory with relative path:
Iteration #1: passed.
Iteration #2: bool(true)
bool(false)
failed.
Iteration #3: bool(true)
bool(false)
failed.
Iteration #4: passed.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 06:01:27 2019 UTC