Home
last modified time | relevance | path

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

12345678910>>...19

/PHP-7.4/ext/phar/tests/
H A Dfgc_edgecases.phpt17 file_get_contents(array());
21 echo file_get_contents($fname);
29 echo file_get_contents("fgc_edgecases.txt");
33 echo file_get_contents("../oops");
35 echo file_get_contents("./hi");
58 echo file_get_contents("../oops");
60 echo file_get_contents("./hi");
75 echo file_get_contents("../oops");
77 echo file_get_contents("./hi");
92 echo file_get_contents("../oops");
[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'));
H A Dphar_oo_compressallbz2.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'));
/PHP-7.4/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-7.4/ext/standard/tests/file/
H A Dfile_get_contents_variation8-win32.phpt2 Test file_get_contents() function : variation - obscure filenames
21 echo "*** Testing file_get_contents() : variation ***\n";
43 var_dump(file_get_contents($value));
49 *** Testing file_get_contents() : variation ***
53 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d
58 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d
63 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
73 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
78 Warning: file_get_contents( ): failed to open stream: Permission denied in %s on line %d
83 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
21 echo "*** Testing file_get_contents() : variation ***\n";
42 var_dump(file_get_contents($names_arr[$i]));
48 *** 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
55 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d
59 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
63 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
67 Warning: file_get_contents(): Filename cannot be empty in %s on line %d
71 Warning: file_get_contents( ): failed to open stream: No such file or directory in %s on line %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_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 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
30 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): failed to open stream: rfc2397: una…
33 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): failed to open stream: rfc2397: unabl…
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_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 Dfile_get_contents_variation1.phpt2 Test file_get_contents() function : variation - include path testing
7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte…
13 echo "*** Testing file_get_contents() : variation ***\n";
40 $line = file_get_contents($filename, true);
48 *** Testing file_get_contents() : variation ***
H A Dfile_get_contents_variation2.phpt2 Test file_get_contents() function : variation - include path testing
7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte…
13 echo "*** Testing file_get_contents() : variation ***\n";
41 $line = file_get_contents($filename, true);
49 *** Testing file_get_contents() : variation ***
/PHP-7.4/sapi/cli/tests/
H A Dbug70264.phpt13 echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS . "/..\\CREDITS");
14 echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS . "/..%5CCREDITS");
17 Warning: file_get_contents(http://%s/..\CREDITS): failed to open stream: HTTP request failed! HTTP/…
20 Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTT…
/PHP-7.4/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'));
H A Dphar_oo_compressallbz2.phpt20 var_dump(file_get_contents($pname . '/a'));
22 var_dump(file_get_contents($pname . '/b'));
24 var_dump(file_get_contents($pname . '/c'));
28 var_dump(file_get_contents($pname . '/a'));
31 var_dump(file_get_contents($pname . '/b'));
34 var_dump(file_get_contents($pname . '/c'));
40 var_dump(file_get_contents($pname2 . '/a'));

Completed in 76 milliseconds

12345678910>>...19