bug78220.phpt 391 B

12345678910111213141516
  1. --TEST--
  2. Bug #78220 (Can't access OneDrive folder)
  3. --SKIPIF--
  4. <?php
  5. if (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')]);
  10. foreach ($onedrive_dirs as $dir) {
  11. if ($dir && scandir($dir) === FALSE) {
  12. echo "can't scan $dir\n";
  13. }
  14. }
  15. ?>
  16. --EXPECT--