/PHP-5.5/ext/standard/tests/file/ |
H A D | fread_variation2.phpt | 21 $file_handle : File Handle 28 var_dump( ftell($file_handle) ); 29 var_dump( feof($file_handle) ); 33 $data_from_file = fread($file_handle, $read_size); 42 var_dump( ftell($file_handle) ); 44 var_dump( feof($file_handle) ); 70 $file_handle = fopen($filename, $file_mode); 71 if (!$file_handle) { 80 rewind($file_handle); 90 rewind($file_handle); [all …]
|
H A D | fseek_ftell_rewind_variation5.phpt | 40 $file_handle = fopen($filename, $file_mode); 41 if (!$file_handle) { 45 rewind($file_handle); 47 var_dump( fseek($file_handle,$count,SEEK_CUR) ); 48 var_dump( ftell($file_handle) ); // confirm the file pointer position 49 var_dump( feof($file_handle) ); //ensure that file pointer is not at end 53 fclose($file_handle);
|
H A D | fgetcsv_variation15.phpt | 38 $file_handle = fopen($filename, "w"); 40 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 42 if ( !$file_handle ) { 48 fwrite($file_handle, $csv_field . "\n"); 53 fwrite($file_handle, "\n"); // blank line 58 fclose($file_handle); 62 rewind($file_handle); 69 var_dump( fgetcsv($file_handle, 1024, $delimiter) ); 71 var_dump( ftell($file_handle) ); 72 var_dump( feof($file_handle) ); [all …]
|
H A D | copy_variation3-win32.phpt | 22 $file_handle = fopen($src_file_name, "w"); 23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); 24 fclose($file_handle);
|
H A D | copy_variation5.phpt | 22 $file_handle = fopen($src_file_name, "w"); 23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); 24 fclose($file_handle);
|
H A D | fgetss_variation3-win32.phpt | 51 $file_handle = fopen($filename, $file_modes[$mode_counter]); 52 fwrite($file_handle,$string_with_tags); //writing data to the file 53 if(!$file_handle) { 59 rewind($file_handle); 60 var_dump( ftell($file_handle) ); 62 var_dump( feof($file_handle) ); 67 while( !feof($file_handle) ) { 69 var_dump( fgetss($file_handle, 80, "<test>, <html>, <?>") ); 70 var_dump( ftell($file_handle) ); // check the file pointer position 71 var_dump( feof($file_handle) ); // check if eof reached [all …]
|
H A D | fgetss_variation3.phpt | 47 $file_handle = fopen($filename, $file_modes[$mode_counter]); 48 fwrite($file_handle,$string_with_tags); //writing data to the file 49 if(!$file_handle) { 55 rewind($file_handle); 56 var_dump( ftell($file_handle) ); 58 var_dump( feof($file_handle) ); 63 while( !feof($file_handle) ) { 65 var_dump( fgetss($file_handle, 80, "<test>, <html>, <?>") ); 66 var_dump( ftell($file_handle) ); // check the file pointer position 67 var_dump( feof($file_handle) ); // check if eof reached [all …]
|
H A D | ftruncate_variation7-win32.phpt | 40 $file_handle = fopen($filename, $file_modes[$mode_counter]); 41 fill_file($file_handle, $file_content_type, 1024); 45 $file_handle = fopen($filename, $file_modes[$mode_counter]); 47 if (!$file_handle) { 52 rewind($file_handle); // file pointer to 0 56 fseek($file_handle, 0, SEEK_END); 59 var_dump( ftell($file_handle) ); 60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it 61 var_dump( ftell($file_handle) ); 62 var_dump( feof($file_handle) ); [all …]
|
H A D | ftruncate_variation7.phpt | 40 $file_handle = fopen($filename, $file_modes[$mode_counter]); 41 fill_file($file_handle, $file_content_type, 1024); 45 $file_handle = fopen($filename, $file_modes[$mode_counter]); 47 if (!$file_handle) { 52 rewind($file_handle); // file pointer to 0 56 fseek($file_handle, 0, SEEK_END); 59 var_dump( ftell($file_handle) ); 60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it 61 var_dump( ftell($file_handle) ); 62 var_dump( feof($file_handle) ); [all …]
|
H A D | ftruncate_variation1-win32.phpt | 39 $file_handle = fopen($filename, $file_modes[$mode_counter]); 40 fill_file($file_handle, $file_content_type, 1024); 44 $file_handle = fopen($filename, $file_modes[$mode_counter]); 46 if (!$file_handle) { 51 rewind($file_handle); // file pointer to 0 57 var_dump( ftell($file_handle) ); 58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it 59 var_dump( ftell($file_handle) ); 60 var_dump( feof($file_handle) ); 61 fclose($file_handle);
|
H A D | ftruncate_variation1.phpt | 39 $file_handle = fopen($filename, $file_modes[$mode_counter]); 40 fill_file($file_handle, $file_content_type, 1024); 44 $file_handle = fopen($filename, $file_modes[$mode_counter]); 46 if (!$file_handle) { 51 rewind($file_handle); // file pointer to 0 57 var_dump( ftell($file_handle) ); 58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it 59 var_dump( ftell($file_handle) ); 60 var_dump( feof($file_handle) ); 61 fclose($file_handle);
|
H A D | fseek_ftell_rewind_basic2-win32.phpt | 44 $file_handle = fopen($filename, $file_mode); 45 if (!$file_handle) { 52 fwrite($file_handle,(binary)$data_to_be_written); 55 var_dump( rewind($file_handle) ); // set to beginning of file 56 var_dump( ftell($file_handle) ); 60 var_dump( fseek($file_handle, 10, $whence) ); //expecting int(0) 61 var_dump( ftell($file_handle) ); // confirm the file pointer position 62 var_dump( feof($file_handle) ); //ensure that file pointer is not at end 66 fclose($file_handle);
|
H A D | fseek_ftell_rewind_basic2.phpt | 43 $file_handle = fopen($filename, $file_mode); 44 if (!$file_handle) { 51 fwrite($file_handle,(binary)$data_to_be_written); 54 var_dump( rewind($file_handle) ); // set to beginning of file 55 var_dump( ftell($file_handle) ); 59 var_dump( fseek($file_handle, 10, $whence) ); //expecting int(0) 60 var_dump( ftell($file_handle) ); // confirm the file pointer position 61 var_dump( feof($file_handle) ); //ensure that file pointer is not at end 65 fclose($file_handle);
|
H A D | fgetcsv_variation17.phpt | 40 $file_handle = fopen($filename, "w"); 44 if ( !$file_handle ) { 50 fwrite($file_handle, $csv_field . "\n"); 60 fclose($file_handle); 64 rewind($file_handle); 72 fseek($file_handle, 0, SEEK_SET); 75 var_dump( ftell($file_handle) ); 76 var_dump( feof($file_handle) ); 81 var_dump( ftell($file_handle) ); 82 var_dump( feof($file_handle) ); [all …]
|
H A D | lstat_stat_variation8.phpt | 35 $file_handle = fopen("$dirname/lstat_stat_variation8a.tmp", "w"); 36 fclose($file_handle);
|
H A D | 005_variation-win32.phpt | 49 $file_handle = fopen("$file_path/005_variation1.tmp", "w"); 50 fclose($file_handle); 54 $file_handle = fopen("$file_path/005_variation2.tmp", "w"); 55 fclose($file_handle); 59 $file_handle = fopen("$file_path/005_variation3.tmp", "w"); 60 fclose($file_handle); 113 $file_handle = fopen($file_name2, "w"); 114 fclose($file_handle);
|
H A D | fseek_ftell_rewind_variation7.phpt | 40 $file_handle = fopen($filename, $file_mode); 41 if (!$file_handle) { 45 rewind($file_handle); 47 var_dump( fseek($file_handle,$count,SEEK_END) ); 48 var_dump( ftell($file_handle) ); // confirm the file pointer position 49 var_dump( feof($file_handle) ); //ensure that file pointer is not at end 54 fclose($file_handle);
|
H A D | copy_variation5-win32.phpt | 22 $file_handle = fopen($src_file_name, "w"); 23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) ); 24 fclose($file_handle);
|
H A D | filesize_variation2-win32.phpt | 45 $file_handle = fopen($filename, "w"); 46 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 47 fclose($file_handle);
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | is_callable_variation2.phpt | 38 $file_handle = fopen (__FILE__, "r"); 51 $file_handle 60 fclose($file_handle);
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | crc32_variation1.phpt | 35 $file_handle = fopen(__FILE__, 'r'); 84 $file_handle 97 fclose($file_handle);
|
H A D | money_format_variation1.phpt | 38 $file_handle = fopen(__FILE__, "r"); 82 /*25*/ $file_handle, 102 fclose($file_handle);
|
H A D | count_chars_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 62 /* 20 */ $file_handle, 80 fclose($file_handle); //closing the file handle
|
H A D | quoted_printable_decode_variation1.phpt | 33 $file_handle = fopen(__FILE__, 'r'); 82 /*26*/ $file_handle 95 fclose($file_handle);
|
H A D | str_pad_variation2.phpt | 28 $file_handle = fopen(__FILE__, "r"); 63 /*18*/ $file_handle, 83 fclose($file_handle); //closing the file handle
|