summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug78386.phpt
blob: 9118761aab21c5974faf8f3361b1317cab2472dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #78386 (fstat mode has unexpected value on PHP 7.4)
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
?>
--FILE--
<?php
$handle = popen('dir', 'r');
$stat = fstat($handle);
var_dump(decoct($stat['mode']));
?>
--EXPECT--
string(5) "10666"