diff options
Diffstat (limited to 'ext/standard/tests/file/file_get_contents_error_folder.phpt')
-rw-r--r-- | ext/standard/tests/file/file_get_contents_error_folder.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/tests/file/file_get_contents_error_folder.phpt b/ext/standard/tests/file/file_get_contents_error_folder.phpt new file mode 100644 index 0000000000..32f0210d3b --- /dev/null +++ b/ext/standard/tests/file/file_get_contents_error_folder.phpt @@ -0,0 +1,12 @@ +--TEST-- +Test file_get_contents() function : error when passing folder +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) === "WIN") { print "skip - not valid for Windows"; } +?> +--FILE-- +<?php +file_get_contents(__DIR__); +?> +--EXPECTF-- +Notice: file_get_contents(): Read of %d bytes failed with errno=21 Is a directory in %s on line %d |