Home
last modified time | relevance | path

Searched refs:readfile (Results 1 – 25 of 67) sorted by relevance

123

/php-src/ext/phar/tests/
H A Dreadfile_edgecases.phpt16 readfile($fname);
20 readfile("foo/" . basename(__FILE__));
22 readfile("readfile_edgecases.txt");
25 readfile("./hi", 0, $context);
26 readfile("../oops");
39 readfile("readfile_edgecases.txt");
42 readfile("./hi", 0, $context);
43 readfile("../oops");
50 readfile("readfile_edgecases.txt");
53 readfile("./hi", 0, $context);
[all …]
H A Dreadfile.phpt2 Phar: test readfile() interception
13 readfile("dir/file1.txt");
14 readfile("file1.txt", true);
/php-src/ext/standard/tests/file/
H A Dreadfile_error.phpt2 Test readfile() function: error conditions
7 echo "*** Test readfile(): error conditions ***\n";
9 echo "\n-- Testing readfile() with invalid arguments --\n";
12 var_dump( readfile('') ); // empty string as $filename
17 var_dump( readfile(false) ); // boolean false as $filename
22 echo "\n-- Testing readfile() with non-existent file --\n";
24 var_dump( readfile($non_existent_file) );
29 *** Test readfile(): error conditions ***
31 -- Testing readfile() with invalid arguments --
35 -- Testing readfile() with non-existent file --
[all …]
H A Dreadfile_variation2.phpt2 Test readfile() function: usage variations - links
13 Read link using readfile()
33 /* Checking readfile() operation on soft link */
34 echo "*** Testing readfile() on soft link ***\n";
38 // readfile() on soft link
39 $count = readfile($linkname); // with default args
45 /* Checking readfile() operation on hard link */
49 // readfile() on hard link
50 $count = readfile($linkname); // default args
64 *** Testing readfile() on soft link ***
[all …]
H A Dreadfile_variation10.phpt2 Test readfile() function : variation - various invalid paths
14 echo "*** Testing readfile() : variation ***\n";
37 readfile($name);
44 *** Testing readfile() : variation ***
47 Warning: readfile(-1): Failed to open stream: %s in %s on line %d
50 Warning: readfile(1): Failed to open stream: %s in %s on line %d
57 Warning: readfile( ): Failed to open stream: %s in %s on line %d
59 ValueError: readfile(): Argument #1 ($filename) must not contain any null bytes
62 Warning: readfile(%sdir): Failed to open stream: %s in %s on line %d
65 Warning: readfile(%sphp): Failed to open stream: %s in %s on line %d
H A Dreadfile_variation10-win32.phpt2 Test readfile() function : variation - various invalid paths
14 echo "*** Testing readfile() : variation ***\n";
36 readfile($value);
43 *** Testing readfile() : variation ***
47 Warning: readfile(-1): Failed to open stream: No such file or directory in %s on line %d
51 Warning: readfile(1): Failed to open stream: No such file or directory in %s on line %d
61 Warning: readfile( ): Failed to open stream: Permission denied in %s on line %d
64 ValueError: readfile(): Argument #1 ($filename) must not contain any null bytes
67 TypeError: readfile(): Argument #1 ($filename) must be of type string, array given
71 Warning: readfile(/no/such/file/dir): Failed to open stream: No such file or directory in %s on lin…
[all …]
H A Dreadfile_variation1.phpt2 Test readfile() function: usage variation - stream_context
5 /* test readfile() with third argument : context */
11 /* Variation 1 : Check working of third argument of readfile() */
13 echo "*** Testing readfile(): checking third argument ***\n";
23 $count = readfile($filename, true, $context);
34 *** Testing readfile(): checking third argument ***
H A Dreadfile_variation3.phpt2 Test readfile() function: usage variation - include path
5 /* test readfile() by providing an include path, second argument */
13 echo "*** Testing readfile(): checking second argument, include path ***\n";
26 $count = readfile("readfile_variation3.tmp", true);
30 echo "*** Testing readfile(): checking second argument, include path with context specified ***\n";
32 $count = readfile("readfile_variation3.tmp", true, $context);
44 *** Testing readfile(): checking second argument, include path ***
52 *** Testing readfile(): checking second argument, include path with context specified ***
H A Dreadfile_variation9.phpt2 Test readfile() function : variation - variable types of path
7 echo "*** Testing readfile() : variation ***\n";
49 $ok = readfile($dir.'/'.$theFile);
63 *** Testing readfile() : variation ***
75 Warning: readfile(%sreadfileVar8Sub/..///readfileVar8Sub//..//../readfileVar8Sub/fileToRead.tmp): F…
79 Warning: readfile(%sreadfileVar8Sub/BADDIR/fileToRead.tmp): Failed to open stream: No such file or …
91 Warning: readfile(BADDIR/fileToRead.tmp): Failed to open stream: No such file or directory in %s on…
H A Dreadfile_variation6.phpt2 Test readfile() function : variation - test include path
9 echo "*** Testing readfile() : variation ***\n";
33 readfile($filename, true);
40 *** Testing readfile() : variation ***
H A Dreadfile_variation7.phpt2 Test readfile() function : variation
9 echo "*** Testing readfile() : variation ***\n";
33 readfile($filename, true);
40 *** Testing readfile() : variation ***
H A Dreadfile_variation8-win32.phpt2 Test readfile() function : variation
12 echo "*** Testing readfile() : variation ***\n";
57 $ok = readfile($dir.'\\'.$theFile);
71 *** Testing readfile() : variation ***
83 Warning: readfile(%s\readfileVar8\readfileVar8Sub\..\\\readfileVar8Sub\\..\\..\readfileVar8Sub\file…
87 Warning: readfile(%s\readfileVar8\readfileVar8Sub\BADDIR\fileToRead.tmp): Failed to open stream: No…
99 Warning: readfile(BADDIR\fileToRead.tmp): Failed to open stream: No such file or directory in %s on…
H A Dreadfile_variation8-win32-mb.phpt2 Test readfile() function : variation
12 echo "*** Testing readfile() : variation ***\n";
57 $ok = readfile($dir.'\\'.$theFile);
71 *** Testing readfile() : variation ***
83 Warning: readfile(%s\readfileVar私はガラスを食べられます8\readfileVar私はガラスを食べられます8Sub\..\\\readfileVar私はガラスを食べら…
87 Warning: readfile(%s\readfileVar私はガラスを食べられます8\readfileVar私はガラスを食べられます8Sub\BADDIR\fileToRead.tmp): F…
99 Warning: readfile(BADDIR\fileToRead.tmp): Failed to open stream: No such file or directory in %s on…
H A Dfile_put_contents_variation1.phpt17 readfile($filename);
22 readfile($filename);
/php-src/ext/openssl/tests/
H A Dopenssl_cms_encrypt_pem.phpt22 readfile($single_cert);
24 readfile($infile);
26 readfile($cryptfile);
31 readfile($decryptfile);
H A Dopenssl_cms_encrypt_der.phpt22 readfile($single_cert);
24 readfile($infile);
31 readfile($decryptfile);
H A Dopenssl_cms_sign_verify_nodetached_pem.phpt23 readfile($infile);
27 readfile($vout);
44 readfile($vout);
63 readfile($vout);
H A Dopenssl_cms_sign_verify_basic.phpt23 readfile($infile);
27 readfile($vout);
/php-src/sapi/cli/tests/
H A Dgh8827-003.phpt40 readfile($stdoutFile);
43 readfile($stderrFile);
/php-src/ext/mbstring/tests/
H A Dmb_send_mail01.phpt20 readfile(__DIR__ . "/mb_send_mail01.eml");
26 readfile(__DIR__ . "/mb_send_mail01.eml");
H A Dmb_send_mail03.phpt20 readfile(__DIR__ . "/mb_send_mail03.eml");
26 readfile(__DIR__ . "/mb_send_mail03.eml");
H A Dmb_send_mail02.phpt20 readfile(__DIR__ . "/mb_send_mail02.eml");
26 readfile(__DIR__ . "/mb_send_mail02.eml");
H A Dmb_send_mail04.phpt20 readfile(__DIR__ . "/mb_send_mail04.eml");
26 readfile(__DIR__ . "/mb_send_mail04.eml");
H A Dmb_send_mail06.phpt23 readfile(__DIR__ . "/mb_send_mail06.eml");
29 readfile(__DIR__ . "/mb_send_mail06.eml");
H A Dmb_send_mail05.phpt23 readfile(__DIR__ . "/mb_send_mail05.eml");
29 readfile(__DIR__ . "/mb_send_mail05.eml");

Completed in 27 milliseconds

123