1--TEST--
2Test filetype() function: Check block device
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) == 'WIN') {
8    die('skip no /dev on Windows');
9}
10if (!file_exists("/dev/ram0")) {
11    die('skip /dev/ram0 not available');
12}
13?>
14--FILE--
15<?php
16echo "-- Checking for block --\n";
17print( filetype("/dev/ram0") )."\n";
18?>
19--EXPECT--
20-- Checking for block --
21block
22