Home
last modified time | relevance | path

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

12

/PHP-7.4/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_variation10.phpt2 Test readfile() function : variation - various invalid paths
20 echo "*** Testing readfile() : variation ***\n";
44 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
14 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
20 echo "*** Testing readfile() : variation ***\n";
42 readfile($value);
47 *** Testing readfile() : variation ***
51 Warning: readfile(-1): failed to open stream: No such file or directory in %s on line %d
55 Warning: readfile(1): failed to open stream: No such file or directory in %s on line %d
59 Warning: readfile(): Filename cannot be empty in %s on line %d
63 Warning: readfile(): Filename cannot be empty in %s on line %d
67 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_variation7.phpt2 Test readfile() function : variation
7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
15 echo "*** Testing readfile() : variation ***\n";
39 readfile($filename, true);
47 *** Testing readfile() : variation ***
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";
39 readfile($filename, true);
47 *** 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 Dreadfile_variation8-win32-mb.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\readfileVar私はガラスを食べられます8\readfileVar私はガラスを食べられます8Sub\..\\\readfileVar私はガラスを食べら…
93 Warning: readfile(%s\readfileVar私はガラスを食べられます8\readfileVar私はガラスを食べられます8Sub\BADDIR\fileToRead.tmp): f…
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.phpt15 readfile($file2);
H A Dfflush_basic.phpt31 var_dump( readfile($filename) );
H A Dfile_put_contents_variation9.phpt51 readfile($file);
/PHP-7.4/ext/phar/tests/
H A Dreadfile_edgecases.phpt13 readfile(array());
17 readfile($fname);
23 readfile("readfile_edgecases.txt");
26 readfile("./hi", 0, $context);
27 readfile("../oops");
42 readfile("readfile_edgecases.txt");
45 readfile("./hi", 0, $context);
46 readfile("../oops");
53 readfile("readfile_edgecases.txt");
56 readfile("./hi", 0, $context);
[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-7.4/ext/standard/tests/general_functions/
H A Dbug60723.phpt13 readfile($log);
/PHP-7.4/ext/zlib/tests/
H A Dzlib_scheme_file_read_file_basic.phpt13 readfile($srcFile);
/PHP-7.4/Zend/tests/
H A Dbug21478.phpt27 readfile(__DIR__."/test.txt");
/PHP-7.4/ext/standard/tests/filters/
H A Dbug35916.phpt36 readfile($file);
/PHP-7.4/ext/phar/
H A Dshortarc.php84 readfile($a);
98 readfile($a);

Completed in 33 milliseconds

12