Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/standard/tests/file/
H A Dreadfile_error.phpt2 Test readfile() function: error conditions
11 echo "*** Test readfile(): error conditions ***\n";
13 var_dump( readfile() ); // args < expected
16 echo "\n-- Testing readfile() with invalid arguments --\n";
18 var_dump( readfile(NULL) ); // NULL as $filename
19 var_dump( readfile('') ); // empty string as $filename
26 var_dump( readfile($non_existent_file) );
31 *** Test readfile(): error conditions ***
32 -- Testing readfile() with unexpected no. of arguments --
40 -- Testing readfile() with invalid arguments --
[all …]
H A Dreadfile_variation5.phpt130 testing readfile
133 testing readfile
136 testing readfile
139 testing readfile
142 testing readfile
145 testing readfile
148 testing readfile
151 testing readfile
154 testing readfile
173 testing readfile
[all …]
H A Dreadfile_variation4.phpt2 Test readfile() function : usage variation
13 echo "*** Testing readfile() : usage variation ***\n";
28 fwrite($h, "testing readfile");
119 $h = readfile($filename, $use_include_path, $value);
134 *** Testing readfile() : usage variation ***
173 Error: 2 - readfile() expects parameter 3 to be resource, array given, %s(%d)
189 testing readfile
192 testing readfile
243 testing readfile
246 testing readfile
[all …]
H A Dreadfile_variation10.phpt2 Test readfile() function : variation - various invalid paths
18 echo "*** Testing readfile() : variation ***\n";
42 readfile($name);
48 *** Testing readfile() : variation ***
51 Warning: readfile(-1): failed to open stream: %s in %s on line %d
54 Warning: readfile(1): failed to open stream: %s in %s on line %d
57 Warning: readfile(): Filename cannot be empty in %s on line %d
60 Warning: readfile(): Filename cannot be empty in %s on line %d
63 Warning: readfile(): Filename cannot be empty in %s on line %d
66 Warning: readfile( ): failed to open stream: %s in %s on line %d
[all …]
H A Dreadfile_variation2.phpt2 Test readfile() function: usage variations - links
17 Read link using readfile()
37 /* Checking readfile() operation on soft link */
38 echo "*** Testing readfile() on soft link ***\n";
42 // readfile() on soft link
43 $count = readfile($linkname); // with default args
49 /* Checking readfile() operation on hard link */
53 // readfile() on hard link
54 $count = readfile($linkname); // default args
68 *** Testing readfile() on soft link ***
[all …]
H A Dreadfile_variation10-win32.phpt2 Test readfile() function : variation - various invalid paths
12 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
18 echo "*** Testing readfile() : variation ***\n";
40 readfile($value);
46 *** Testing readfile() : variation ***
50 Warning: readfile(-1): failed to open stream: No such file or directory in %s on line %d
54 Warning: readfile(1): failed to open stream: No such file or directory in %s on line %d
58 Warning: readfile(): Filename cannot be empty in %s on line %d
62 Warning: readfile(): Filename cannot be empty in %s on line %d
66 Warning: readfile(): Filename cannot be empty in %s on line %d
[all …]
H A Dreadfile_variation1.phpt2 Test readfile() function: usage variation - stream_context
5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
9 /* test readfile() with third argument : context */
15 /* Variation 1 : Check working of third argument of readfile() */
17 echo "*** Testing readfile(): checking third argument ***\n";
27 $count = readfile($filename, true, $context);
38 *** Testing readfile(): checking third argument ***
H A Dreadfile_variation3.phpt2 Test readfile() function: usage variation - include path
5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
8 /* test readfile() by providing an include path, second argument */
16 echo "*** Testing readfile(): checking second argument, include path ***\n";
29 $count = readfile("readfile_variation3.tmp", true);
33 echo "*** Testing readfile(): checking second argument, include path with context specified ***\n";
35 $count = readfile("readfile_variation3.tmp", true, $context);
47 *** Testing readfile(): checking second argument, include path ***
55 *** Testing readfile(): checking second argument, include path with context specified ***
H A Dreadfile_variation9.phpt2 Test readfile() function : variation - variable types of path
7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
13 echo "*** Testing readfile() : variation ***\n";
55 $ok = readfile($dir.'/'.$theFile);
69 *** Testing readfile() : variation ***
81 Warning: readfile(%sreadfileVar8Sub/..///readfileVar8Sub//..//../readfileVar8Sub/fileToRead.tmp): f…
85 Warning: readfile(%sreadfileVar8Sub/BADDIR/fileToRead.tmp): failed to open stream: No such file or …
97 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
7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
15 echo "*** Testing readfile() : variation ***\n";
40 readfile($filename, true);
48 *** Testing readfile() : variation ***
H A Dreadfile_variation7.phpt2 Test readfile() function : variation
7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
15 echo "*** Testing readfile() : variation ***\n";
40 readfile($filename, true);
48 *** Testing readfile() : variation ***
H A Dreadfile_variation8-win32.phpt2 Test readfile() function : variation
12 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
18 echo "*** Testing readfile() : variation ***\n";
63 $ok = readfile($dir.'\\'.$theFile);
77 *** Testing readfile() : variation ***
89 Warning: readfile(%s\readfileVar8\readfileVar8Sub\..\\\readfileVar8Sub\\..\\..\readfileVar8Sub\file…
93 Warning: readfile(%s\readfileVar8\readfileVar8Sub\BADDIR\fileToRead.tmp): failed to open stream: No…
105 Warning: readfile(BADDIR\fileToRead.tmp): failed to open stream: No such file or directory in %s on…
H A Dbug22414.phpt20 $cmd = $php . $args . ' -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"';
23 $cmd = $php . $args . ' -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"';
H A Dfile_put_contents_variation1.phpt23 readfile($filename);
28 readfile($filename);
H A Dbug44805.phpt21 readfile($file2);
/PHP-5.5/ext/phar/tests/
H A Dreadfile_edgecases.phpt14 readfile(array());
18 readfile($fname);
24 readfile("foob");
26 readfile("foob", true);
28 readfile("../oops");
44 readfile("foob");
46 readfile("foob", true);
48 readfile("../oops");
55 readfile("foob");
57 readfile("foob", true);
[all …]
H A Dreadfile_edgecasesU.phpt17 readfile($fname);
23 readfile("foob");
25 readfile("foob", true);
26 readfile("./hi", 0, $context);
27 readfile("../oops");
42 readfile("foob");
44 readfile("foob", true);
46 readfile("../oops");
53 readfile("foob");
55 readfile("foob", true);
[all …]
H A Dreadfile.phpt2 Phar: test readfile() interception
13 readfile("dir/file1.txt");
14 readfile("file1.txt", true);
H A Dphar_gobyebye.phpt19 readfile("foo/hi");
33 Warning: readfile(foo/hi): failed to open stream: No such file or directory in phar://%sphar_gobyeb…
H A Dphar_gobyebye-win32.phpt18 readfile("foo/hi");
32 Warning: readfile(foo/hi): failed to open stream: No such file or directory in phar://%sphar_gobyeb…
/PHP-5.5/ext/standard/tests/general_functions/
H A Dbug60723.phpt13 readfile($log);
/PHP-5.5/ext/zlib/tests/
H A Dzlib_scheme_file_read_file_basic.phpt13 readfile($srcFile);
/PHP-5.5/ext/standard/tests/filters/
H A Dbug35916.phpt36 readfile($file);
/PHP-5.5/Zend/tests/
H A Dbug21478.phpt32 readfile(dirname(__FILE__)."/test.txt");
/PHP-5.5/ext/phar/
H A Dshortarc.php84 readfile($a);
98 readfile($a);

Completed in 25 milliseconds

12