Searched refs:readfile (Results 1 – 25 of 46) sorted by relevance
12
/PHP-7.4/ext/standard/tests/file/ |
H A D | readfile_error.phpt | 2 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 D | readfile_variation10.phpt | 2 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 D | readfile_variation2.phpt | 2 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 D | readfile_variation10-win32.phpt | 2 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 D | readfile_variation1.phpt | 2 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 D | readfile_variation3.phpt | 2 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 D | readfile_variation7.phpt | 2 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 D | readfile_variation9.phpt | 2 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 D | readfile_variation6.phpt | 2 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 D | readfile_variation8-win32.phpt | 2 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 D | readfile_variation8-win32-mb.phpt | 2 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 D | bug22414.phpt | 20 $cmd = $php . $args . ' -r \"readfile(@getenv(\'\\\'\'TEST_PHP_EXECUTABLE\'\\\'\')); \"'; 23 $cmd = $php . $args . ' -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"';
|
H A D | file_put_contents_variation1.phpt | 23 readfile($filename); 28 readfile($filename);
|
H A D | bug44805.phpt | 15 readfile($file2);
|
H A D | fflush_basic.phpt | 31 var_dump( readfile($filename) );
|
H A D | file_put_contents_variation9.phpt | 51 readfile($file);
|
/PHP-7.4/ext/phar/tests/ |
H A D | readfile_edgecases.phpt | 13 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 D | readfile.phpt | 2 Phar: test readfile() interception 13 readfile("dir/file1.txt"); 14 readfile("file1.txt", true);
|
H A D | phar_gobyebye.phpt | 19 readfile("foo/hi"); 33 Warning: readfile(foo/hi): failed to open stream: No such file or directory in phar://%sphar_gobyeb…
|
H A D | phar_gobyebye-win32.phpt | 18 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 D | bug60723.phpt | 13 readfile($log);
|
/PHP-7.4/ext/zlib/tests/ |
H A D | zlib_scheme_file_read_file_basic.phpt | 13 readfile($srcFile);
|
/PHP-7.4/Zend/tests/ |
H A D | bug21478.phpt | 27 readfile(__DIR__."/test.txt");
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug35916.phpt | 36 readfile($file);
|
/PHP-7.4/ext/phar/ |
H A D | shortarc.php | 84 readfile($a); 98 readfile($a);
|
Completed in 33 milliseconds
12