summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/file_get_contents_error_folder-win.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/file_get_contents_error_folder-win.phpt')
-rw-r--r--ext/standard/tests/file/file_get_contents_error_folder-win.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/tests/file/file_get_contents_error_folder-win.phpt b/ext/standard/tests/file/file_get_contents_error_folder-win.phpt
new file mode 100644
index 0000000000..ea3902fdbe
--- /dev/null
+++ b/ext/standard/tests/file/file_get_contents_error_folder-win.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Test file_get_contents() function : error when passing folder - on Windows
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != "WIN") { print "skip - Windows only"; }
+?>
+--FILE--
+<?php
+file_get_contents(__DIR__);
+?>
+--EXPECTF--
+Warning: file_get_contents(%s): Failed to open stream: Permission denied in %s on line %d