From: Ferenc Kovacs Date: Mon, 24 Aug 2015 06:52:31 +0000 (+0200) Subject: use another character device in this test as /dev/console seems that it is different... X-Git-Tag: php-5.5.31~9^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e93d7953df5ae596c820ed6f3af4a86e9ab5f744;p=php use another character device in this test as /dev/console seems that it is different for lxc containers --- diff --git a/ext/standard/tests/file/filetype_variation2.phpt b/ext/standard/tests/file/filetype_variation2.phpt index d538e32e6c..bf1d321f12 100644 --- a/ext/standard/tests/file/filetype_variation2.phpt +++ b/ext/standard/tests/file/filetype_variation2.phpt @@ -7,7 +7,7 @@ Dave Kelsey if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip no /dev on Windows'); } -if (!file_exists("/dev/console")) { +if (!file_exists("/dev/null")) { die('skip /dev/console not available'); } ?> @@ -20,7 +20,7 @@ Description: Returns the type of the file. Possible values are fifo, char, */ echo "-- Checking for char --\n"; -print( filetype("/dev/console") )."\n"; +print( filetype("/dev/null") )."\n"; ?> ===DONE=== --EXPECTF--