summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/file_get_contents_error_folder-win.phpt
blob: ea3902fdbe063b9503dc30727f0138cc4ffcd5d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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