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