1--TEST--
2bug #44859 (incorrect result with NTFS ACL permissions, is_executable)
3--SKIPIF--
4<?php
5include_once __DIR__ . '/common.inc';
6skipif();
7?>
8--FILE--
9<?php
10include_once __DIR__ . '/common.inc';
11fix_acls();
12
13$iteration = array(
14    'tiny.exe' => true,
15    //'tiny.bat' => true, To be fixed in _access
16    __FILE__ => false
17);
18
19$i = 1;
20$path = __DIR__;
21
22foreach ($iteration as $file => $exp) {
23    $path = __DIR__ . '/' . $file;
24    echo 'Iteration #' . $i++ . ': ';
25    if (is_executable($path) == $exp) {
26        echo "passed.\n";
27    } else {
28        var_dump(is_executable($path), $exp);
29        echo "failed.\n";
30    }
31}
32
33
34?>
35--EXPECT--
36Iteration #1: passed.
37Iteration #2: passed.
38