summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-08-19 19:56:12 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-08-19 19:57:22 +0200
commit5e19f1d458556183230fe0e09a6a24b413553e9b (patch)
treebb5382a94399f68b03278e2293190a2ffaab03e4 /ext
parentbe7e819068985859f92e4af21e49b4f647dd0467 (diff)
parent81f52158b42318f17f67468cccc4a8dc03bba942 (diff)
downloadphp-git-5e19f1d458556183230fe0e09a6a24b413553e9b.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Fix #78220: Can't access OneDrive folder
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/tests/dir/bug78220.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/standard/tests/dir/bug78220.phpt b/ext/standard/tests/dir/bug78220.phpt
new file mode 100644
index 0000000000..16daa0d716
--- /dev/null
+++ b/ext/standard/tests/dir/bug78220.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #78220 (Can't access OneDrive folder)
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
+?>
+--FILE--
+<?php
+$onedrive_dirs = array_unique([getenv('OneDrive'), getenv('OneDriveCommercial')]);
+foreach ($onedrive_dirs as $dir) {
+ if ($dir && scandir($dir) === FALSE) {
+ echo "can't scan $dir\n";
+ }
+}
+?>
+--EXPECT--