xref: /PHP-8.0/ext/standard/tests/dir/bug78220.phpt (revision 81f52158)
1--TEST--
2Bug #78220 (Can't access OneDrive folder)
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$onedrive_dirs = array_unique([getenv('OneDrive'), getenv('OneDriveCommercial')]);
10foreach ($onedrive_dirs as $dir) {
11    if ($dir && scandir($dir) === FALSE) {
12        echo "can't scan $dir\n";
13    }
14}
15?>
16--EXPECT--
17