Home
last modified time | relevance | path

Searched refs:file_handle (Results 101 – 125 of 503) sorted by relevance

12345678910>>...21

/PHP-5.5/ext/standard/tests/file/
H A Dpopen_pclose_error-win32.phpt25 $file_handle = fopen($file_path."/popen.tmp", "w");
26 var_dump( pclose($file_handle, $file_handle) );
27 pclose($file_handle);
H A Dfflush_error.phpt21 $file_handle = fopen($filename, "w");
22 if($file_handle == false)
25 var_dump( fflush($file_handle, $file_handle) );
26 fclose($file_handle);
H A Dfscanf_variation5.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
45 @fprintf($file_handle, $value);
46 @fprintf($file_handle, "\n");
49 fclose($file_handle);
52 $file_handle = fopen($filename, "r");
53 if($file_handle == false) {
61 rewind($file_handle);
63 while( !feof($file_handle) ) {
64 var_dump( fscanf($file_handle,$int_format) );
H A Dfscanf_variation11.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
50 @fprintf($file_handle, $value);
51 @fprintf($file_handle, "\n");
54 fclose($file_handle);
57 $file_handle = fopen($filename, "r");
58 if($file_handle == false) {
66 rewind($file_handle);
68 while( !feof($file_handle) ) {
69 var_dump( fscanf($file_handle,$float_format) );
H A Dfscanf_variation30.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
50 @fprintf($file_handle, $value);
51 @fprintf($file_handle, "\n");
54 fclose($file_handle);
57 $file_handle = fopen($filename, "r");
58 if($file_handle == false) {
66 rewind($file_handle);
68 while( !feof($file_handle) ) {
69 var_dump( fscanf($file_handle,$octal_format) );
H A Dfscanf_variation36.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
45 @fprintf($file_handle, $value);
46 @fprintf($file_handle, "\n");
49 fclose($file_handle);
52 $file_handle = fopen($filename, "r");
53 if($file_handle == false) {
61 rewind($file_handle);
63 while( !feof($file_handle) ) {
64 var_dump( fscanf($file_handle,$hexa_format) );
H A Dfscanf_variation42.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
45 @fprintf($file_handle, $value);
46 @fprintf($file_handle, "\n");
49 fclose($file_handle);
52 $file_handle = fopen($filename, "r");
53 if($file_handle == false) {
61 rewind($file_handle);
63 while( !feof($file_handle) ) {
64 var_dump( fscanf($file_handle,$unsigned_format) );
H A Dfscanf_variation48.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
45 @fprintf($file_handle, $value);
46 @fprintf($file_handle, "\n");
49 fclose($file_handle);
52 $file_handle = fopen($filename, "r");
53 if($file_handle == false) {
61 rewind($file_handle);
63 while( !feof($file_handle) ) {
64 var_dump( fscanf($file_handle,$scientific_format) );
H A Dcopy_variation10.phpt16 $file_handle = fopen($file, "w");
17 fwrite($file_handle, str_repeat(b"Hello2world...\n", 100));
18 fclose($file_handle);
H A Dftruncate_error.phpt13 $file_handle = fopen($filename, "w" );
14 fwrite($file_handle, (binary)"Testing ftruncate error conditions \n");
15 fflush($file_handle);
24 var_dump( ftruncate( $file_handle ) );
30 var_dump( ftruncate($file_handle, 10, 20) );
54 fclose($file_handle);
55 var_dump( ftruncate($file_handle,10) );
H A Dfwrite_basic-win32.phpt39 $file_handle = fopen($filename, $file_modes[$inner_loop_counter]);
40 if (!$file_handle) {
50 var_dump( ftell($file_handle) ); // Expecting 0
52 var_dump( feof($file_handle) ); // expected : false
53 var_dump( ftell($file_handle) ); //expected: 100
57 var_dump( feof($file_handle) ); // expected : false
58 var_dump( ftell($file_handle) ); // expected: 1124
61 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
62 var_dump( ftell($file_handle) ); // expected: 2148
63 var_dump( feof($file_handle) ); // expected: false
[all …]
H A Dfwrite_basic.phpt39 $file_handle = fopen($filename, $file_modes[$inner_loop_counter]);
40 if (!$file_handle) {
50 var_dump( ftell($file_handle) ); // Expecting 0
52 var_dump( feof($file_handle) ); // expected : false
53 var_dump( ftell($file_handle) ); //expected: 100
57 var_dump( feof($file_handle) ); // expected : false
58 var_dump( ftell($file_handle) ); // expected: 1124
61 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
62 var_dump( ftell($file_handle) ); // expected: 2148
63 var_dump( feof($file_handle) ); // expected: false
[all …]
H A Dis_file_variation3.phpt13 $file_handle = fopen($file_path."/is_file_variation3.tmp", "w");
24 $file_handle,
36 fclose($file_handle);
H A Dfileowner_basic.phpt20 $file_handle = fopen($file_name, "w");
22 fwrite($file_handle, $string);
24 fclose($file_handle);
H A Dfwrite_variation3-win32.phpt45 $file_handle = fopen($filename, $file_mode);
46 if(!$file_handle) {
57 var_dump( ftell($file_handle) ); // expected: 1024
58 var_dump( fwrite($file_handle,$data_to_be_written,400) );
59 var_dump( ftell($file_handle) ); // expected: 1024 + 400
60 var_dump( feof($file_handle) ); // expected : true
63 fseek($file_handle, SEEK_SET, (1024 + 400)/2 );
65 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
66 var_dump( ftell($file_handle) );
67 var_dump( feof($file_handle) ); //Expecting bool(false)
[all …]
H A Dfwrite_variation3.phpt45 $file_handle = fopen($filename, $file_mode);
46 if(!$file_handle) {
58 var_dump( ftell($file_handle) ); // expected: 1024
59 var_dump( fwrite($file_handle,$data_to_be_written,400) );
60 var_dump( ftell($file_handle) ); // expected: 1024 + 400
61 var_dump( feof($file_handle) ); // expected : true
64 fseek($file_handle, SEEK_SET, (1024 + 400)/2 );
66 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
67 var_dump( ftell($file_handle) );
68 var_dump( feof($file_handle) ); //Expecting bool(false)
[all …]
H A Dfread_error.phpt15 $file_handle = fopen($filename, "r");
23 var_dump( fread($file_handle, 10, $file_handle) );
28 var_dump( fread($file_handle, $len) );
30 var_dump( fread($file_handle, $len) );
50 fclose($file_handle);
51 var_dump( fread($file_handle,$file_content_type) );
H A Dfwrite_error.phpt24 $file_handle = fopen ( $filename, "w");
25 var_dump( fwrite($file_handle) );
30 var_dump( fwrite($file_handle, $data, strlen($data), 10) );
35 var_dump( fwrite($file_handle, $data, $len) );
37 var_dump( fwrite($file_handle, $data, $len) );
57 fclose($file_handle);
58 var_dump(fwrite($file_handle,"data"));
H A Dfile_get_contents_error.phpt26 $file_handle = fopen($file_path."/file_put_contents_error.tmp", "w");
27 print( file_get_contents($file_path."/file1.tmp", false, $file_handle, 1, 2, "extra_argument") );
30 var_dump( file_get_contents($file_path."/file1.tmp", FALSE, $file_handle, 0, -5) );
33 fclose($file_handle);
H A Dis_file_error.phpt15 $file_handle = fopen($file_path."/is_file_error.tmp", "w");
22 var_dump( is_file($file_handle) );
24 fclose($file_handle);
H A Dpopen_pclose_error-win32-debug.phpt28 $file_handle = fopen($file_path."/popen.tmp", "w");
29 var_dump( pclose($file_handle, $file_handle) );
30 pclose($file_handle);
H A Dfscanf_variation21.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
53 @fprintf($file_handle, $value);
54 @fprintf($file_handle, "\n");
57 fclose($file_handle);
60 $file_handle = fopen($filename, "r");
61 if($file_handle == false) {
69 rewind($file_handle);
71 while( !feof($file_handle) ) {
72 var_dump( fscanf($file_handle,$char_format) );
H A Dfscanf_variation23.phpt19 $file_handle = fopen($filename, "w");
20 if($file_handle == false)
49 @fprintf($file_handle, $value);
50 @fprintf($file_handle, "\n");
53 fclose($file_handle);
56 $file_handle = fopen($filename, "r");
57 if($file_handle == false) {
65 rewind($file_handle);
67 while( !feof($file_handle) ) {
68 var_dump( fscanf($file_handle,$char_format) );
/PHP-5.5/sapi/pi3web/
H A Dpi3web_sapi.c347 zend_file_handle file_handle = {0}; in PHP5_wrapper() local
352 file_handle.filename = lpCB->lpszFileName; in PHP5_wrapper()
353 file_handle.free_filename = 0; in PHP5_wrapper()
354 file_handle.type = ZEND_HANDLE_FILENAME; in PHP5_wrapper()
355 file_handle.opened_path = NULL; in PHP5_wrapper()
362 iRet = ( php_execute_script( &file_handle TSRMLS_CC ) ) ? in PHP5_wrapper()
367 if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS ) in PHP5_wrapper()
386 if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS ) in PHP5_wrapper()
396 iRet = (php_lint_script(&file_handle TSRMLS_CC) == SUCCESS) ? in PHP5_wrapper()
/PHP-5.5/sapi/phttpd/
H A Dphttpd.c244 zend_file_handle file_handle; in php_doit() local
251 file_handle.type = ZEND_HANDLE_FILENAME; in php_doit()
252 file_handle.filename = SG(request_info).path_translated; in php_doit()
253 file_handle.free_filename = 0; in php_doit()
258 php_execute_script(&file_handle TSRMLS_CC); in php_doit()

Completed in 44 milliseconds

12345678910>>...21