/PHP-5.5/ext/standard/tests/file/ |
H A D | fgets_variation5.phpt | 30 $file_handle = fopen($filename, $file_mode); 31 $data = fill_file($file_handle, $file_content_type, 50); 33 if ( !$file_handle ) { 40 rewind($file_handle); 42 var_dump( ftell($file_handle) ); 43 var_dump( fgets($file_handle, 50 + 23) ); // expected: 50 44 var_dump( ftell($file_handle) ); // ensure the file pointer position 45 var_dump( feof($file_handle) ); // enusre if eof set 48 fclose($file_handle);
|
H A D | fputcsv_variation14.phpt | 37 $file_handle = fopen($filename, "w" ); 38 if ( !$file_handle ) { 42 fclose($file_handle); 48 $file_handle = fopen($filename, "w" ); 49 if ( !$file_handle ) { 53 fclose($file_handle); 58 if ( !$file_handle ) { 67 var_dump( fputcsv($file_handle, $csv_field, '++', '%%') ); 69 var_dump( ftell($file_handle) ); 70 var_dump( feof($file_handle) ); [all …]
|
H A D | fscanf_variation55.phpt | 28 $file_handle = fopen($filename, "w"); 29 if($file_handle == false) 54 @fprintf($file_handle, $data); 55 @fprintf($file_handle, "\n"); 58 fclose($file_handle); 67 if($file_handle == false) { 75 var_dump( ftell($file_handle) ); 77 rewind($file_handle); 79 var_dump( ftell($file_handle) ); 81 while( !feof($file_handle) ) { [all …]
|
H A D | fgets_variation6-win32.phpt | 36 $file_handle = fopen($filename, $file_mode); 37 $data = fill_file($file_handle, $file_content_type, 50); 39 if ( !$file_handle ) { 46 var_dump( fseek($file_handle, 0, SEEK_END) ); // set file pointer to eof 47 var_dump( ftell($file_handle) ); // ensure that file pointer is at eof 48 var_dump( feof($file_handle) ); // expected false 50 var_dump( fgets($file_handle) ); // try n read a line, none expected 51 var_dump( ftell($file_handle) ); // file pointer position 52 var_dump( feof($file_handle) ); // ensure thta file pointer is at eof 55 fclose($file_handle);
|
H A D | fgets_variation6.phpt | 36 $file_handle = fopen($filename, $file_mode); 37 $data = fill_file($file_handle, $file_content_type, 50); 39 if ( !$file_handle ) { 46 var_dump( fseek($file_handle, 0, SEEK_END) ); // set file pointer to eof 47 var_dump( ftell($file_handle) ); // ensure that file pointer is at eof 48 var_dump( feof($file_handle) ); // expected false 50 var_dump( fgets($file_handle) ); // try n read a line, none expected 51 var_dump( ftell($file_handle) ); // file pointer position 52 var_dump( feof($file_handle) ); // ensure thta file pointer is at eof 55 fclose($file_handle);
|
H A D | fwrite_variation4-win32.phpt | 43 $file_handle = fopen($filename, $file_mode); 44 if(!$file_handle) { 55 var_dump( ftell($file_handle) ); 56 var_dump( fwrite($file_handle,$data_to_be_written,400)); 57 var_dump( ftell($file_handle) ); 58 var_dump( feof($file_handle) ); // expected: true 62 var_dump( fclose($file_handle) );
|
H A D | fwrite_variation4.phpt | 43 $file_handle = fopen($filename, $file_mode); 44 if(!$file_handle) { 55 var_dump( ftell($file_handle) ); 56 var_dump( fwrite($file_handle,$data_to_be_written,400)); 57 var_dump( ftell($file_handle) ); 58 var_dump( feof($file_handle) ); // expected: true 62 var_dump( fclose($file_handle) );
|
H A D | fgetcsv_variation18.phpt | 40 $file_handle = fopen($filename, "w"); 44 if ( !$file_handle ) { 50 fwrite($file_handle, $csv_field . "\n"); 55 fwrite($file_handle, "\n"); // blank line 60 fclose($file_handle); 64 rewind($file_handle); 72 fseek($file_handle, 0, SEEK_SET); 74 var_dump( fgetcsv($file_handle, 1024, $del) ); 76 var_dump( ftell($file_handle) ); 77 var_dump( feof($file_handle) ); [all …]
|
H A D | fscanf_variation14.phpt | 19 $file_handle = fopen($filename, "w"); 20 if($file_handle == false) 79 @fprintf($file_handle, $string); 80 @fprintf($file_handle, "\n"); 83 fclose($file_handle); 86 $file_handle = fopen($filename, "r"); 87 if($file_handle == false) { 95 rewind($file_handle); 97 while( !feof($file_handle) ) { 98 var_dump( fscanf($file_handle,$string_format) );
|
H A D | fgets_basic.phpt | 25 $file_handle = fopen($filename, $file_mode); 26 if ( !$file_handle ) { 32 var_dump( fgets($file_handle) ); // with default length 33 var_dump( ftell($file_handle) ); // ensure the file pointer position 34 var_dump( feof($file_handle) ); // enusre if eof set 37 var_dump( rewind($file_handle) ); 38 var_dump( fgets($file_handle, 23) ); // expected: 22 chars 39 var_dump( ftell($file_handle) ); // ensure the file pointer position 40 var_dump( feof($file_handle) ); // enusre if eof set 43 fclose($file_handle);
|
H A D | copy_variation11.phpt | 16 $file_handle = fopen($file, "w"); 17 fwrite($file_handle, str_repeat(b"Hello, world...", 20)); 18 fclose($file_handle);
|
H A D | fgetcsv_variation22.phpt | 41 $file_handle = fopen($filename, "w"); 43 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 45 if ( !$file_handle ) { 52 fwrite($file_handle, $csv_field . "\n"); 57 fwrite($file_handle, "\n"); // blank line 61 fclose($file_handle); 68 var_dump( fseek($file_handle, 0, SEEK_END) ); 73 var_dump( feof($file_handle) ); 76 var_dump( ftell($file_handle) ); 77 var_dump( feof($file_handle) ); [all …]
|
/PHP-5.5/ext/standard/tests/mail/ |
H A D | ezmlm_hash_error.phpt | 32 $file_handle = fopen(__FILE__, "r"); 34 var_dump( ezmlm_hash($file_handle) ); 35 fclose($file_handle);
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | print_variation1.phpt | 26 $file_handle = fopen(__FILE__, "r"); 62 /*19*/ $file_handle, 81 fclose($file_handle); //closing the file handle
|
H A D | strrchr_variation9.phpt | 28 $file_handle = fopen(__FILE__, "r"); 71 $file_handle, 113 "\$file_handle", 128 fclose($file_handle); //closing the file handle
|
H A D | bin2hex_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 59 /*17*/$file_handle, 76 fclose($file_handle); //closing the file handle
|
H A D | hebrev_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 62 /*20*/ $file_handle, 80 fclose($file_handle); //closing the file handle
|
H A D | hebrevc_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 62 /*20*/ $file_handle, 80 fclose($file_handle); //closing the file handle
|
H A D | ord_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 61 /*20*/ $file_handle, 78 fclose($file_handle); //closing the file handle
|
H A D | str_shuffle_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 61 /*19*/ $file_handle, 79 fclose($file_handle); //closing the file handle
|
H A D | strlen_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 61 /*19*/ $file_handle, 81 fclose($file_handle); //closing the file handle
|
H A D | convert_uuencode_variation1.phpt | 25 $file_handle = fopen(__FILE__, "r"); 62 /*20*/ $file_handle, 79 fclose($file_handle); //closing the file handle
|
H A D | sscanf_variation2.phpt | 24 $file_handle = fopen(__FILE__, "r"); 60 /*19*/ $file_handle, 80 fclose($file_handle); //closing the file handle
|
H A D | stristr_variation1.phpt | 24 $file_handle = fopen(__FILE__, "r"); 59 /*18*/ $file_handle, 79 fclose($file_handle); //closing the file handle
|
/PHP-5.5/sapi/tux/ |
H A D | php_tux.c | 298 zend_file_handle file_handle; in tux_module_main() local 300 file_handle.type = ZEND_HANDLE_FILENAME; in tux_module_main() 301 file_handle.filename = SG(request_info).path_translated; in tux_module_main() 302 file_handle.free_filename = 0; in tux_module_main() 303 file_handle.opened_path = NULL; in tux_module_main() 309 php_execute_script(&file_handle TSRMLS_CC); in tux_module_main()
|