Home
last modified time | relevance | path

Searched refs:file_handle (Results 26 – 50 of 311) sorted by relevance

12345678910>>...13

/PHP-8.2/ext/standard/tests/file/
H A D007_variation22.phpt19 $file_handle = fopen($file, "a+b"); //opening the file "a+b" mode
20 var_dump($file_handle); //Check for the content of handle
21 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
22 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
23 rewind($file_handle);
24 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
27 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A D007_variation6.phpt19 $file_handle = fopen($file, "a+"); //opening the file "a+" mode
20 var_dump($file_handle); //Check for the content of handle
21 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
22 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
23 rewind($file_handle);
24 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
27 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A D007_variation4.phpt20 $file_handle = fopen($file, "w+"); //opening the file "w+" mode
21 var_dump($file_handle); //Check for the content of handle
22 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
25 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
26 rewind($file_handle);
27 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
28 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
29 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A Dfscanf_variation10.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
40 @fprintf($file_handle, "%s", $value);
41 @fprintf($file_handle, "\n");
44 fclose($file_handle);
47 $file_handle = fopen($filename, "r");
48 if($file_handle == false) {
56 rewind($file_handle);
58 while( !feof($file_handle) ) {
60 var_dump( fscanf($file_handle,$float_format) );
H A Dfscanf_variation29.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
40 @fprintf($file_handle, "%s", $value);
41 @fprintf($file_handle, "\n");
44 fclose($file_handle);
47 $file_handle = fopen($filename, "r");
48 if($file_handle == false) {
56 rewind($file_handle);
58 while( !feof($file_handle) ) {
60 var_dump(fscanf($file_handle,$octal_format));
H A Dfscanf_variation35.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
35 @fprintf($file_handle, "%s", $value);
36 @fprintf($file_handle, "\n");
39 fclose($file_handle);
42 $file_handle = fopen($filename, "r");
43 if($file_handle == false) {
51 rewind($file_handle);
53 while( !feof($file_handle) ) {
55 var_dump(fscanf($file_handle,$hexa_format));
H A Dfscanf_variation4.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
36 @fprintf($file_handle, "%s", $value);
37 @fprintf($file_handle, "\n");
40 fclose($file_handle);
43 $file_handle = fopen($filename, "r");
44 if($file_handle == false) {
52 rewind($file_handle);
54 while( !feof($file_handle) ) {
56 var_dump(fscanf($file_handle,$int_format));
H A Dfscanf_variation41.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
35 @fprintf($file_handle, "%s", $value);
36 @fprintf($file_handle, "\n");
39 fclose($file_handle);
42 $file_handle = fopen($filename, "r");
43 if($file_handle == false) {
51 rewind($file_handle);
53 while( !feof($file_handle) ) {
55 var_dump(fscanf($file_handle,$unsigned_format));
H A Dfscanf_variation47.phpt14 $file_handle = fopen($filename, "w");
15 if($file_handle == false)
35 @fprintf($file_handle, "%s", $value);
36 @fprintf($file_handle, "\n");
39 fclose($file_handle);
42 $file_handle = fopen($filename, "r");
43 if($file_handle == false) {
51 rewind($file_handle);
53 while( !feof($file_handle) ) {
55 var_dump(fscanf($file_handle,$scientific_format));
H A Dstat_variation8-win32.phpt22 $file_handle = fopen($filename, "w"); // temp file
23 fclose($file_handle);
29 $file_handle = fopen($filename, "w");
30 fclose($file_handle);
38 $file_handle = fopen($filename, "r+");
39 var_dump( ftruncate($file_handle, 512) ); // truncate it
40 fclose($file_handle);
H A D007_variation21.phpt19 $file_handle = fopen($file, "ab"); //opening the file "ab" mode
20 var_dump($file_handle); //Check for the content of handle
21 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
22 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
23 rewind($file_handle);
24 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
27 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A D007_variation5.phpt19 $file_handle = fopen($file, "a"); //opening the file "a" mode
20 var_dump($file_handle); //Check for the content of handle
21 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
22 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
23 rewind($file_handle);
24 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
27 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A D007_variation11-win32-mb.phpt25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation11-win32.phpt25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation11.phpt25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation12-win32.phpt25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation12.phpt25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation19.phpt20 $file_handle = fopen($file, "wb"); //opening the file "wb" mode
21 var_dump($file_handle); //Check for the content of handle
22 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
25 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
26 rewind($file_handle);
27 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
28 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
29 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation20.phpt20 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
21 var_dump($file_handle); //Check for the content of handle
22 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
25 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
26 rewind($file_handle);
27 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
28 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
29 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation3.phpt20 $file_handle = fopen($file, "w"); //opening the file "w" mode
21 var_dump($file_handle); //Check for the content of handle
22 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
25 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
26 rewind($file_handle);
27 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
28 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
29 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation13-win32.phpt24 $file_handle = fopen($file, "at"); //opening the file "at" mode
25 var_dump($file_handle); //Check for the content of handle
26 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
27 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
28 rewind($file_handle);
29 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
30 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
31 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
32 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A D007_variation13.phpt24 $file_handle = fopen($file, "at"); //opening the file "at" mode
25 var_dump($file_handle); //Check for the content of handle
26 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
27 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
28 rewind($file_handle);
29 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
30 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
31 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
32 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
H A Dftruncate_bug76422.phpt18 $file_handle = fopen($fn,'cb');
20 if (false === $file_handle) {
27 $ftruncate_result = ftruncate($file_handle, $truncate_offset);
30 fclose($file_handle);
36 $ftruncate_result = ftruncate($file_handle, $truncate_offset);
42 fclose($file_handle);
47 fclose($file_handle);
H A Dfflush_basic.phpt17 $file_handle = fopen($filename, "w");
18 if($file_handle == false)
26 var_dump( fwrite($file_handle, $data) );
27 var_dump( fflush($file_handle) );
31 $return_value = fflush($file_handle);
33 fclose($file_handle);
/PHP-8.2/sapi/fuzzer/
H A Dfuzzer-sapi.c260 zend_file_handle file_handle; in fuzzer_do_request_from_buffer() local
261 zend_stream_init_filename(&file_handle, filename); in fuzzer_do_request_from_buffer()
262 file_handle.primary_script = 1; in fuzzer_do_request_from_buffer()
263 file_handle.buf = emalloc(data_len + ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer()
264 memcpy(file_handle.buf, data, data_len); in fuzzer_do_request_from_buffer()
265 memset(file_handle.buf + data_len, 0, ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer()
266 file_handle.len = data_len; in fuzzer_do_request_from_buffer()
268 file_handle.type = ZEND_HANDLE_STREAM; in fuzzer_do_request_from_buffer()
270 zend_op_array *op_array = zend_compile_file(&file_handle, ZEND_REQUIRE); in fuzzer_do_request_from_buffer()
271 zend_destroy_file_handle(&file_handle); in fuzzer_do_request_from_buffer()

Completed in 36 milliseconds

12345678910>>...13