/PHP-7.1/ext/standard/tests/file/ |
H A D | fscanf_variation10.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 43 // writing to the file 48 // closing the file 51 // opening the file for reading 54 exit("Error:failed to open file $filename"); 58 // reading the values from file using different formats formats 60 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | fscanf_variation29.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 43 // writing to the file 48 // closing the file 51 // opening the file for reading 54 exit("Error:failed to open file $filename"); 58 // reading the values from file using different octal formats 60 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | fscanf_variation35.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 38 // writing to the file 43 // closing the file 46 // opening the file for reading 49 exit("Error:failed to open file $filename"); 53 // reading the values from file using different hexa formats 55 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | fscanf_variation4.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 39 // writing to the file 44 // closing the file 47 // opening the file for reading 50 exit("Error:failed to open file $filename"); 54 // reading the values from file using different integer formats 56 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | fscanf_variation41.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 38 // writing to the file 43 // closing the file 46 // opening the file for reading 49 exit("Error:failed to open file $filename"); 53 // reading the values from file using different unsigned formats 55 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | fscanf_variation47.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 38 // writing to the file 43 // closing the file 46 // opening the file for reading 49 exit("Error:failed to open file $filename"); 53 // reading the values from file using different scientific formats 55 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | symlink_link_linkinfo_is_link_variation8.phpt | 15 Description: Tells whether the given file is a symbolic link. 26 /* creating link to a file in different dir with the same name as the file */ 28 // temp file used 35 // create temp file 39 var_dump( link($filename, $dirname."/") ); // this fails indicating file exists 44 // delete temp file 55 // create temp file 59 var_dump( symlink($filename, $dirname."/") ); // this fails indicating file exists 64 // delete temp file
|
H A D | file_get_contents_error.phpt | 9 * Description: Reads entire file into a string 15 include($file_path."/file.inc"); 17 echo "\n-- Testing with Non-existing file --\n"; 18 print( file_get_contents("/no/such/file/or/dir") ); 25 create_files($file_path, 1, "text", 0755, 100, "w", "file", 1, "byte"); 51 -- Testing with Non-existing file -- 53 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
|
H A D | rename_variation-win32.phpt | 12 Description: Renames a file or directory 15 require dirname(__FILE__).'/file.inc'; 26 /* Testing a file trailing slash */ 29 /* Testing file with double slashes */ 36 /* loop through each $file and rename it to rename_variation2.tmp */ 44 // ensure that file got renamed to new name 49 // unlink the file 77 Warning: unlink(%s/rename_variation2.tmp): No such file or directory in %s on line %d
|
H A D | stat_variation1-win32-mb.phpt | 14 * Description: Gives information about a file 17 /* test the effects of rename() on stats of dir/file */ 20 require "$file_path/file.inc"; 23 /* create temp file and directory */ 26 $file_handle = fopen("$file_path/stat_variation1_私はガラスを食べられます.tmp", "w"); // temp file 30 echo "*** Testing stat(): on file and directory ater renaming them ***\n"; 32 // renaming a file 80 *** Testing stat(): on file and directory ater renaming them ***
|
H A D | stat_variation1-win32.phpt | 14 * Description: Gives information about a file 17 /* test the effects of rename() on stats of dir/file */ 20 require "$file_path/file.inc"; 23 /* create temp file and directory */ 26 $file_handle = fopen("$file_path/stat_variation1.tmp", "w"); // temp file 30 echo "*** Testing stat(): on file and directory ater renaming them ***\n"; 32 // renaming a file 80 *** Testing stat(): on file and directory ater renaming them ***
|
H A D | fgetcsv_variation12.phpt | 45 echo "Error: failed to create file $filename!\n"; 60 // else rewind the file pointer to beginning of the file 65 // rewind the file pointer to bof 78 // check the file pointer position and if eof 82 // close the file 84 //delete file 94 -- Testing fgetcsv() with file opened using r mode -- 106 -- Testing fgetcsv() with file opened using rb mode -- 118 -- Testing fgetcsv() with file opened using rt mode -- 130 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fflush_basic.phpt | 6 Description: Flushes the output to a file 9 echo "*** Testing fflush(): writing to a file and reading the contents ***\n"; 19 // opening a file 22 exit("Error:failed to open file $filename"); 28 // writing data to the file 46 *** Testing fflush(): writing to a file and reading the contents ***
|
H A D | rename_variation4.phpt | 14 require dirname(__FILE__).'/file.inc'; 16 /* Renaming a file, link and directory to numeric name */ 17 echo "\n*** Testing rename() by renaming a file, link and directory to numeric name ***\n"; 20 // renaming existing file to numeric name 25 // remove the file 44 *** Testing rename() by renaming a file, link and directory to numeric name ***
|
H A D | file_get_contents_file_put_contents_error.phpt | 2 Test file-get_contents() and file_put_contents() functions : error conditions 7 * Description: Reads entire file into a string 11 * Description: Write a string to a file 18 echo "\n-- Testing with Non-existing file --\n"; 19 print( file_get_contents("/no/such/file/or/dir") ); 32 file_put_contents($file_path."/file_put_contents1.tmp", "Garbage data in the file"); 49 -- Testing with Non-existing file -- 51 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
|
H A D | file_get_contents_variation8.phpt | 14 * Description: Read the entire file into a string 15 * Source code: ext/standard/file.c 33 "/no/such/file/dir", 49 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d 53 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d 69 Warning: file_get_contents( ): failed to open stream: No such file or directory in %s on line %d 81 Warning: file_get_contents(/no/such/file/dir): failed to open stream: No such file or directory in … 85 Warning: file_get_contents(php/php): failed to open stream: No such file or directory in %s on line…
|
H A D | stat_basic-win32-mb.phpt | 13 Description: Gives information about a file 17 require("$file_path/file.inc"); 21 /* creating temp directory and file */ 31 // creating file 35 // stat of the file created 39 // now new stat of the dir after file is created 50 // New stat values taken after creation of file 54 // creating file, also dump the value of stats 56 echo "-- comparing difference in dir stats before and after creating file in it --\n"; 77 *** Testing stat(): comparing stats (recorded before and after file creation) *** [all …]
|
H A D | stat_basic-win32.phpt | 13 Description: Gives information about a file 17 require("$file_path/file.inc"); 21 /* creating temp directory and file */ 31 // creating file 35 // stat of the file created 39 // now new stat of the dir after file is created 50 // New stat values taken after creation of file 54 // creating file, also dump the value of stats 56 echo "-- comparing difference in dir stats before and after creating file in it --\n"; 77 *** Testing stat(): comparing stats (recorded before and after file creation) *** [all …]
|
H A D | readfile_variation1.phpt | 6 Description: Outputs a file 11 // include file.inc 12 require("file.inc"); 20 // temp file name used here 23 // create file
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | is_resource_basic.phpt | 50 echo "\nResource type..var_dump after file open returns\n"; 52 echo "Resource type..after file open is_resource() returns"; 60 echo "\nResource type..var_dump after file close returns\n"; 62 echo "Resource type..after file close is_resource() returns"; 85 Resource type..var_dump after file open returns 87 Resource type..after file open is_resource() returns TRUE 89 Resource type..var_dump after file close returns 91 Resource type..after file close is_resource() returns FALSE
|
/PHP-7.1/tests/basic/ |
H A D | rfc1867_max_file_uploads_empty_files.phpt | 10 Content-Type: text/plain-file 15 Content-Type: text/plain-file 20 Content-Type: text/plain-file 25 Content-Type: text/plain-file 73 string(15) "text/plain-file" 86 string(15) "text/plain-file"
|
/PHP-7.1/ext/curl/tests/ |
H A D | bug48207.phpt | 2 Test curl_setopt() CURLOPT_FILE readonly file handle 11 * Description : Adds a file which stores the received data from curl_exec(); 26 // Create a temporary file for the test 28 $url = 'file://'. $tempname; 30 // add the test data to the file 46 Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
|
/PHP-7.1/scripts/dev/ |
H A D | check_parameters.php | 301 foreach (scandir($path) as $file) { 302 if ($file == '.' || $file == '..' || $file == 'CVS') continue; 304 $file = "$path/$file"; 305 if (is_dir($file)) { 306 recurse($file); 311 if (substr_compare($file, '.c', -2) && substr_compare($file, '.cpp', -4)) continue; 313 $txt = file_get_contents($file); 337 $GLOBALS['current_file'] = $file;
|
/PHP-7.1/ext/xmlreader/tests/ |
H A D | bug71805.phpt | 11 function TestXML($file) { 13 $XR->open($file, null, LIBXML_NOBLANKS); 23 echo $file.' : Problem with file'.($err ? ' — '.$err : '').'.'; 30 echo $file.' : Good!';
|
/PHP-7.1/ext/standard/tests/url/ |
H A D | parse_url_basic_004.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : int(80) 77 --> zlib:/path/to/my/file/file.txt : NULL 84 --> file:///path/to/file : NULL 85 --> file://path/to/file : NULL 86 --> file:/path/to/file : NULL 103 --> file:///: : NULL 104 --> file:///a:/ : NULL 105 --> file:///ab:/ : NULL 106 --> file:///a:/ : NULL 107 --> file:///@:/ : NULL [all …]
|