Home
last modified time | relevance | path

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

12345678910>>...21

/php-src/ext/phar/tests/
H A Dfgc_edgecases.phpt16 file_get_contents(array());
23 echo file_get_contents($fname);
35 echo file_get_contents("fgc_edgecases.txt");
39 echo file_get_contents("../oops");
41 echo file_get_contents("./hi");
67 echo file_get_contents("../oops");
69 echo file_get_contents("./hi");
87 echo file_get_contents("../oops");
89 echo file_get_contents("./hi");
108 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'));
H A Dphar_oo_compressallgz.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-src/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-src/ext/standard/tests/file/
H A Dfile_get_contents_variation8.phpt2 Test file_get_contents() function : variation - obscure filenames
15 echo "*** Testing file_get_contents() : variation ***\n";
36 var_dump(file_get_contents($names_arr[$i]));
45 *** Testing file_get_contents() : variation ***
48 Warning: file_get_contents(-1): Failed to open stream: No such file or directory in %s on line %d
52 Warning: file_get_contents(1): Failed to open stream: No such file or directory in %s on line %d
60 Warning: file_get_contents( ): Failed to open stream: No such file or directory in %s on line %d
63 ValueError: file_get_contents(): Argument #1 ($filename) must not contain any null bytes
65 TypeError: file_get_contents(): Argument #1 ($filename) must be of type string, array given
68 Warning: file_get_contents(/no/such/file/dir): Failed to open stream: No such file or directory in …
[all …]
H A Dfile_get_contents_variation8-win32.phpt2 Test file_get_contents() function : variation - obscure filenames
15 echo "*** Testing file_get_contents() : variation ***\n";
37 var_dump(file_get_contents($value));
45 *** 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
54 Warning: file_get_contents(1): Failed to open stream: No such file or directory in %s on line %d
65 Warning: file_get_contents( ): Failed to open stream: Permission denied in %s on line %d
69 ValueError: file_get_contents(): Argument #1 ($filename) must not contain any null bytes
72 TypeError: file_get_contents(): Argument #1 ($filename) must be of type string, array given
76 Warning: file_get_contents(/no/such/file/dir): Failed to open stream: No such file or directory in …
[all …]
H A Dstream_rfc2397_006.phpt18 var_dump(file_get_contents($stream));
26 file_get_contents(): Argument #1 ($filename) must not contain any null bytes
27 file_get_contents(): Argument #1 ($filename) must not contain any null bytes
29 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): Failed to open stream: rfc2397: una…
32 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): Failed to open stream: rfc2397: unabl…
H A Dfile_get_contents_file_put_contents_basic.phpt2 Test file_put_contents() and file_get_contents() functions : basic functionality
9 echo "*** Testing the basic functionality of file_put_contents() and file_get_contents() functions …
17 var_dump( file_get_contents($file_path.$file_name) );
23 var_dump( file_get_contents( $file_path.$file_name ) );
34 *** Testing the basic functionality of file_put_contents() and file_get_contents() functions ***
H A Dfile_get_contents_basic.phpt2 file_get_contents() function : basic functionality
11 echo "*** Testing the basic functionality of the file_get_contents() function ***\n";
17 var_dump( file_get_contents($file_path."/file1.tmp") );
23 var_dump( file_get_contents($file_path."/file1.tmp") );
34 *** Testing the basic functionality of the file_get_contents() function ***
H A Dstream_copy_to_stream.phpt19 var_dump(file_get_contents($new_file));
33 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
35 var_dump(file_get_contents($new_file));
51 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
53 var_dump(file_get_contents($new_file));
68 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
70 var_dump(file_get_contents($new_file));
85 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
87 var_dump(file_get_contents($new_file));
105 var_dump(file_get_contents($new_file));
[all …]
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));
41 var_dump(file_get_contents($filename));
H A Dfile_get_contents_error_folder-win.phpt2 Test file_get_contents() function : error when passing folder - on Windows
9 file_get_contents(__DIR__);
12 Warning: file_get_contents(%s): Failed to open stream: Permission denied in %s on line %d
H A Dfile_get_contents_error_folder.phpt2 Test file_get_contents() function : error when passing folder
9 file_get_contents(__DIR__);
12 Notice: file_get_contents(): Read of %d bytes failed with errno=21 Is a directory in %s on line %d
/php-src/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'));
/php-src/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-src/ext/openssl/tests/
H A Dopenssl_pkcs12_export_to_file_basic.phpt10 $cert = file_get_contents($cert_file);
13 $priv = file_get_contents($priv_file);
23 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
25 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
27 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
29 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
/php-src/ext/zip/tests/
H A Doo_extract.phpt28 echo file_get_contents($dirname . '__oo_extract_tmp/foobar/baz') . "\n";
34 echo file_get_contents($dirname . '__oo_extract_tmp/bar') . "\n";
40 echo file_get_contents($dirname . '__oo_extract_tmp/foo') . "\n";
49 echo file_get_contents($dirname . '__oo_extract_tmp/bar') . "\n";
57 echo file_get_contents($dirname . '__oo_extract_tmp/bar') . "\n";
62 echo file_get_contents($dirname . '__oo_extract_tmp/foo') . "\n";

Completed in 36 milliseconds

12345678910>>...21