Home
last modified time | relevance | path

Searched refs:file_get_contents (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/PHP-5.5/ext/phar/tests/
H A Dfgc_edgecases.phpt18 file_get_contents(array());
22 echo file_get_contents($fname);
30 echo file_get_contents("foob");
34 echo file_get_contents("../oops");
36 echo file_get_contents("./hi");
56 echo file_get_contents("foob");
62 echo file_get_contents("./hi");
73 echo file_get_contents("foob");
79 echo file_get_contents("./hi");
90 echo file_get_contents("foob");
[all …]
H A Dphar_oo_uncompressall.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
33 var_dump(file_get_contents($pname . '/a'));
36 var_dump(file_get_contents($pname . '/b'));
39 var_dump(file_get_contents($pname . '/c'));
44 var_dump(file_get_contents($pname . '/a'));
46 var_dump(file_get_contents($pname . '/b'));
48 var_dump(file_get_contents($pname . '/c'));
H A Dphar_oo_compressed_002.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
39 var_dump(file_get_contents($pname . '/a'));
41 var_dump(file_get_contents($pname . '/b'));
43 var_dump(file_get_contents($pname . '/c'));
45 var_dump(file_get_contents($pname . '/d'));
47 var_dump(file_get_contents($pname . '/e'));
H A Dphar_oo_compressed_002b.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
39 var_dump(file_get_contents($pname . '/a'));
41 var_dump(file_get_contents($pname . '/b'));
43 var_dump(file_get_contents($pname . '/c'));
45 var_dump(file_get_contents($pname . '/d'));
47 var_dump(file_get_contents($pname . '/e'));
H A Dphar_oo_compressed_001.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
38 var_dump(file_get_contents($pname . '/a'));
40 var_dump(file_get_contents($pname . '/b'));
42 var_dump(file_get_contents($pname . '/c'));
44 var_dump(file_get_contents($pname . '/d'));
H A Dphar_oo_compressed_001b.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
38 var_dump(file_get_contents($pname . '/a'));
40 var_dump(file_get_contents($pname . '/b'));
42 var_dump(file_get_contents($pname . '/c'));
44 var_dump(file_get_contents($pname . '/d'));
H A D016.phpt23 var_dump(file_get_contents($pname . '/a'));
24 var_dump(file_get_contents($pname . '/b'));
25 var_dump(file_get_contents($pname . '/c'));
26 var_dump(file_get_contents($pname . '/d'));
31 Warning: file_get_contents(phar://%s/a): failed to open stream: phar error: internal corruption of …
34 Warning: file_get_contents(phar://%s/b): failed to open stream: phar error: internal corruption of …
38 Warning: file_get_contents(phar://%s/d): failed to open stream: phar error: internal corruption of …
H A Dphar_ctx_001.phpt24 var_dump(file_get_contents($pname . '/a'));
26 var_dump(file_get_contents($pname . '/b'));
28 var_dump(file_get_contents($pname . '/c'));
39 var_dump(file_get_contents($pname . '/a'));
42 var_dump(file_get_contents($pname . '/b'));
45 var_dump(file_get_contents($pname . '/c'));
48 var_dump(file_get_contents($pname . '/d'));
57 var_dump(file_get_contents($pname . '/b'));
/PHP-5.5/tests/security/
H A Dopen_basedir_file_get_contents.phpt9 test_open_basedir_before("file_get_contents");
10 test_open_basedir_error("file_get_contents");
12 var_dump(file_get_contents("ok.txt"));
13 var_dump(file_get_contents("../ok/ok.txt"));
14 var_dump(file_get_contents($initdir."/test/ok/ok.txt"));
15 var_dump(file_get_contents($initdir."/test/ok/../ok/ok.txt"));
17 test_open_basedir_after("file_get_contents");
25 *** Testing open_basedir configuration [file_get_contents] ***
44 Warning: file_get_contents(..): failed to open stream: %s in %s on line %d
54 Warning: file_get_contents(/): failed to open stream: %s in %s on line %d
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dfile_get_contents_variation4.phpt2 Test file_get_contents() function : usage variation - different types for context.
13 echo "*** Testing file_get_contents() : usage variation ***\n";
122 var_dump( file_get_contents($absFile, false, $value) );
131 *** Testing file_get_contents() : usage variation ***
150 Error: 2 - file_get_contents() expects parameter 3 to be resource, double given, %s(%d)
154 Error: 2 - file_get_contents() expects parameter 3 to be resource, double given, %s(%d)
158 Error: 2 - file_get_contents() expects parameter 3 to be resource, double given, %s(%d)
170 Error: 2 - file_get_contents() expects parameter 3 to be resource, array given, %s(%d)
174 Error: 2 - file_get_contents() expects parameter 3 to be resource, array given, %s(%d)
178 Error: 2 - file_get_contents() expects parameter 3 to be resource, array given, %s(%d)
[all …]
H A Dfile_get_contents_variation8-win32.phpt2 Test file_get_contents() function : variation - obscure filenames
19 echo "*** Testing file_get_contents() : variation ***\n";
41 var_dump(file_get_contents($value));
47 *** Testing file_get_contents() : variation ***
51 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d
56 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d
61 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
71 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
76 Warning: file_get_contents( ): failed to open stream: Permission denied in %s on line %d
81 Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s on line %d
[all …]
H A Dfile_get_contents_variation8.phpt2 Test file_get_contents() function : variation - obscure filenames
19 echo "*** Testing file_get_contents() : variation ***\n";
40 var_dump(file_get_contents($names_arr[$i]));
46 *** Testing file_get_contents() : variation ***
49 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d
53 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d
57 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
61 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
65 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
69 Warning: file_get_contents( ): failed to open stream: No such file or directory in %s on line %d
[all …]
H A Dfile_get_contents_variation6.phpt2 Test file_get_contents() function : usage variation
13 echo "*** Testing file_get_contents() : usage variation ***\n";
111 var_dump( file_get_contents($absFile, false, null, 0, $value) );
119 *** Testing file_get_contents() : usage variation ***
145 Error: 2 - file_get_contents() expects parameter 5 to be long, array given, %s(%d)
149 Error: 2 - file_get_contents() expects parameter 5 to be long, array given, %s(%d)
153 Error: 2 - file_get_contents() expects parameter 5 to be long, array given, %s(%d)
157 Error: 2 - file_get_contents() expects parameter 5 to be long, array given, %s(%d)
179 Error: 2 - file_get_contents() expects parameter 5 to be long, string given, %s(%d)
183 Error: 2 - file_get_contents() expects parameter 5 to be long, string given, %s(%d)
[all …]
H A Dfile_get_contents_error.phpt2 Test file_get_contents() function : error conditions
7 /* Prototype: string file_get_contents( string $filename{, bool $use_include_path[,
18 print( file_get_contents("/no/such/file/or/dir") );
21 print( file_get_contents() );
27 print( file_get_contents($file_path."/file1.tmp", false, $file_handle, 1, 2, "extra_argument") );
30 var_dump( file_get_contents($file_path."/file1.tmp", FALSE, $file_handle, 0, -5) );
53 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
57 Warning: file_get_contents() expects at least 1 parameter, 0 given in %s on line %d
61 Warning: file_get_contents() expects at most 5 parameters, 6 given in %s on line %d
64 Warning: file_get_contents(): length must be greater than or equal to zero in %s on line %d
H A Dfile_get_contents_variation5.phpt2 Test file_get_contents() function : usage variation
13 echo "*** Testing file_get_contents() : usage variation ***\n";
114 var_dump( file_get_contents($absFile, false, null, $value) );
122 *** Testing file_get_contents() : usage variation ***
152 Error: 2 - file_get_contents() expects parameter 4 to be long, array given, %s(%d)
156 Error: 2 - file_get_contents() expects parameter 4 to be long, array given, %s(%d)
160 Error: 2 - file_get_contents() expects parameter 4 to be long, array given, %s(%d)
164 Error: 2 - file_get_contents() expects parameter 4 to be long, array given, %s(%d)
186 Error: 2 - file_get_contents() expects parameter 4 to be long, %unicode_string_optional% given, %s(…
210 Error: 2 - file_get_contents() expects parameter 4 to be long, object given, %s(%d)
[all …]
H A Dfile_get_contents_error002.phpt2 file_get_contents() test using negative parameter for length (last parameter)
10 if (!function_exists("file_get_contents"))
11 die ("skip file_get_contents function is not found");
15 var_dump(file_get_contents("http://checkip.dyndns.com",null,null,0,-1));
H A Dstream_copy_to_stream.phpt17 var_dump(file_get_contents($new_file));
29 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
31 var_dump(file_get_contents($new_file));
45 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
47 var_dump(file_get_contents($new_file));
60 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
62 var_dump(file_get_contents($new_file));
75 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
77 var_dump(file_get_contents($new_file));
93 var_dump(file_get_contents($new_file));
[all …]
H A Dfile_get_contents_basic.phpt2 file_get_contents() function : basic functionality
8 /* Prototype: string file_get_contents( string $filename[, bool $use_include_path[,
16 echo "*** Testing the basic functionality of the file_get_contents() function ***\n";
22 var_dump( file_get_contents($file_path."/file1.tmp") );
28 var_dump( file_get_contents($file_path."/file1.tmp") );
34 *** Testing the basic functionality of the file_get_contents() function ***
H A Dfile_get_contents_error001.phpt2 file_get_contents() test using offset parameter out of range
11 if (!function_exists("file_get_contents"))
12 die ("skip file_get_contents function is not found");
17 var_dump(file_get_contents("http://checkip.dyndns.com",null,null,8000,1));
H A Dfile_get_contents_file_put_contents_basic.phpt2 Test file_put_contents() and file_get_contents() functions : basic functionality
6 /* Prototype: string file_get_contents( string $filename[, bool $use_include_path[,
18 echo "*** Testing the basic functionality of file_put_contents() and file_get_contents() functions …
26 var_dump( file_get_contents($file_path.$file_name) );
32 var_dump( file_get_contents( $file_path.$file_name ) );
43 *** Testing the basic functionality of file_put_contents() and file_get_contents() functions ***
H A Dfile_get_contents_file_put_contents_error.phpt5 /* Prototype: string file_get_contents( string $filename{, bool $use_include_path[,
19 print( file_get_contents("/no/such/file/or/dir") );
22 print( file_get_contents() );
29 print( file_get_contents("abc.tmp", false, $file_handle, 1, 2, "extra_argument") );
33 var_dump( file_get_contents($file_path."/file_put_contents1.tmp", FALSE, NULL, 0, -5) );
51 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
55 Warning: file_get_contents() expects at least 1 parameter, 0 given in %s on line %d
65 Warning: file_get_contents() expects at most 5 parameters, 6 given in %s on line %d
68 Warning: file_get_contents(): length must be greater than or equal to zero in %s on line %d
H A Dftruncate.phpt13 var_dump(file_get_contents($filename));
18 var_dump(file_get_contents($filename));
25 var_dump(file_get_contents($filename));
30 var_dump(file_get_contents($filename));
37 var_dump(file_get_contents($filename));
H A Dfile_get_contents_variation7.phpt2 Test file_get_contents() function : variation - various absolute and relative paths
7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte…
13 echo "*** Testing file_get_contents() : variation ***\n";
52 var_dump(file_get_contents($dir."/".$filename));
63 *** Testing file_get_contents() : variation ***
79 Warning: file_get_contents(%sfileGetContentsVar7.dir/fileGetContentsVar7Sub/..///fileGetContentsVar…
84 Warning: file_get_contents(%sfileGetContentsVar7.dir/fileGetContentsVar7Sub/BADDIR/FileGetContentsV…
101 Warning: file_get_contents(BADDIR/FileGetContentsVar7.tmp): failed to open stream: No such file or …
H A Dstream_rfc2397_006.phpt17 var_dump(file_get_contents($stream));
24 Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s line %d
27 Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s line %d
31 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): failed to open stream: rfc2397: unabl…
/PHP-5.5/ext/phar/tests/zip/
H A Dphar_oo_compressallgz.phpt18 var_dump(file_get_contents($pname . '/a'));
20 var_dump(file_get_contents($pname . '/b'));
22 var_dump(file_get_contents($pname . '/c'));
26 var_dump(file_get_contents($pname . '/a'));
29 var_dump(file_get_contents($pname . '/b'));
32 var_dump(file_get_contents($pname . '/c'));

Completed in 39 milliseconds

12345678910>>...15