import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / file_get_contents_variation8-win32.php
blob9e250bc560fb41a6f909d3344732f5303c3607cb
1 <?php
2 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
3 * Description: Read the entire file into a string
4 * Source code: ext/standard/file.c
5 * Alias to functions:
6 */
8 echo "*** Testing file_get_contents() : variation ***\n";
10 /* An array of filenames */
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 var_dump(file_get_contents($value));
34 ===Done===