import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / readfile_variation10-win32.php
blobde6c626f70cccec467219c4187e2f2c4516a2b9f
1 <?php
2 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
3 * Description: Output a file or a URL
4 * Source code: ext/standard/file.c
5 * Alias to functions:
6 */
8 echo "*** Testing readfile() : variation ***\n";
10 /* An array of files */
11 $names_arr = array(
12 /* Invalid args */
13 "-1" => -1,
14 "TRUE" => TRUE,
15 "FALSE" => FALSE,
16 "NULL" => NULL,
17 "\"\"" => "",
18 "\" \"" => " ",
19 "\\0" => "\0",
20 "array()" => array(),
22 /* prefix with path separator of a non existing directory*/
23 "/no/such/file/dir" => "/no/such/file/dir",
24 "php/php"=> "php/php"
28 foreach($names_arr as $key => $value) {
29 echo "\n-- Filename: $key --\n";
30 readfile($value);
34 ===Done===