1--TEST-- 2disk_total_space() and disk_free_space() tests 3--INI-- 4precision=14 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) == 'WIN') { 8 die('skip not for Windows'); 9} 10?> 11--CONFLICTS-- 12disk_total_space 13--FILE-- 14<?php 15 16var_dump(disk_free_space()); 17var_dump(disk_total_space()); 18 19var_dump(disk_free_space(-1)); 20var_dump(disk_total_space(-1)); 21 22var_dump(disk_free_space("/")); 23var_dump(disk_total_space("/")); 24 25var_dump(disk_free_space("/some/path/here")); 26var_dump(disk_total_space("/some/path/here")); 27 28echo "Done\n"; 29?> 30--EXPECTF-- 31Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d 32NULL 33 34Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d 35NULL 36 37Warning: disk_free_space(): No such file or directory in %s on line %d 38bool(false) 39 40Warning: disk_total_space(): No such file or directory in %s on line %d 41bool(false) 42float(%d) 43float(%d) 44 45Warning: disk_free_space(): No such file or directory in %s on line %d 46bool(false) 47 48Warning: disk_total_space(): No such file or directory in %s on line %d 49bool(false) 50Done 51