Home
last modified time | relevance | path

Searched refs:file_handle (Results 176 – 200 of 503) sorted by relevance

12345678910>>...21

/PHP-5.5/ext/standard/tests/file/
H A Dfgets_variation5.phpt30 $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 Dfputcsv_variation14.phpt37 $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 Dfscanf_variation55.phpt28 $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 Dfgets_variation6-win32.phpt36 $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 Dfgets_variation6.phpt36 $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 Dfwrite_variation4-win32.phpt43 $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 Dfwrite_variation4.phpt43 $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 Dfgetcsv_variation18.phpt40 $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 Dfscanf_variation14.phpt19 $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 Dfgets_basic.phpt25 $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 Dcopy_variation11.phpt16 $file_handle = fopen($file, "w");
17 fwrite($file_handle, str_repeat(b"Hello, world...", 20));
18 fclose($file_handle);
H A Dfgetcsv_variation22.phpt41 $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 Dezmlm_hash_error.phpt32 $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 Dprint_variation1.phpt26 $file_handle = fopen(__FILE__, "r");
62 /*19*/ $file_handle,
81 fclose($file_handle); //closing the file handle
H A Dstrrchr_variation9.phpt28 $file_handle = fopen(__FILE__, "r");
71 $file_handle,
113 "\$file_handle",
128 fclose($file_handle); //closing the file handle
H A Dbin2hex_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
59 /*17*/$file_handle,
76 fclose($file_handle); //closing the file handle
H A Dhebrev_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
62 /*20*/ $file_handle,
80 fclose($file_handle); //closing the file handle
H A Dhebrevc_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
62 /*20*/ $file_handle,
80 fclose($file_handle); //closing the file handle
H A Dord_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
61 /*20*/ $file_handle,
78 fclose($file_handle); //closing the file handle
H A Dstr_shuffle_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
61 /*19*/ $file_handle,
79 fclose($file_handle); //closing the file handle
H A Dstrlen_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
61 /*19*/ $file_handle,
81 fclose($file_handle); //closing the file handle
H A Dconvert_uuencode_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
62 /*20*/ $file_handle,
79 fclose($file_handle); //closing the file handle
H A Dsscanf_variation2.phpt24 $file_handle = fopen(__FILE__, "r");
60 /*19*/ $file_handle,
80 fclose($file_handle); //closing the file handle
H A Dstristr_variation1.phpt24 $file_handle = fopen(__FILE__, "r");
59 /*18*/ $file_handle,
79 fclose($file_handle); //closing the file handle
/PHP-5.5/sapi/tux/
H A Dphp_tux.c298 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()

Completed in 38 milliseconds

12345678910>>...21