]> granicus.if.org Git - php/commitdiff
use another character device in this test as /dev/console seems that it is different...
authorFerenc Kovacs <tyrael@php.net>
Mon, 24 Aug 2015 06:52:31 +0000 (08:52 +0200)
committerFerenc Kovacs <tyrael@php.net>
Mon, 24 Aug 2015 12:40:21 +0000 (14:40 +0200)
ext/standard/tests/file/filetype_variation2.phpt

index d538e32e6c3c7ea3eb0bdbef44c6b83f6a0b61e1..bf1d321f127b4d66d7e53c12d0ce80b1f2ad8e5c 100644 (file)
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
 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--