Home
last modified time | relevance | path

Searched refs:fread (Results 1 – 25 of 209) sorted by relevance

123456789

/PHP-7.4/ext/standard/tests/file/
H A Dfread_error.phpt2 Test fread() function : error conditions
18 echo "-- Testing fread() with zero argument --\n";
19 var_dump( fread() );
23 var_dump( fread($file_handle, 10, $file_handle) );
28 var_dump( fread($file_handle, $len) );
30 var_dump( fread($file_handle, $len) );
51 var_dump( fread($file_handle,$file_content_type) );
56 var_dump( fread(@$fp,10) );
62 -- Testing fread() with zero argument --
70 -- Testing fread() with invalid length arguments --
[all …]
H A Dfread_fwrite_basic.phpt2 fread & fwrite - Test reading and writing using a single resource
14 Prototype: string fread ( resource $handle [, int $length] );
31 echo "start:".fread($h, strlen($out1) - 5). "\n";
33 echo "at end:".fread($h,100)."\n";
38 echo "final:".fread($h, 100)."\n";
43 fread($h,1024);
45 fread($h,1);
50 fread($h,1);
53 echo "last bytes: ".fread($h, strlen($out))."\n";
H A Dfread_variation2.phpt2 Test fread() function : usage variations - read some/all chars, write only mode (Bug #42036)
6 Prototype: string fread ( resource $handle [, int $length] );
33 $data_from_file = fread($file_handle, $read_size);
50 echo "*** Testing fread() : usage variations ***\n";
59 echo "\n-- Testing fread() with file having content of type ". $file_content_type ." --\n";
61 /* open the file using $files_modes and perform fread() on it */
107 *** Testing fread() : usage variations ***
109 -- Testing fread() with file having content of type numeric --
282 -- Testing fread() with file having content of type text --
455 -- Testing fread() with file having content of type text_with_new_line --
[all …]
H A Dfread_variation4.phpt2 Test fread() function : usage variations - read beyond file size, write only mode
6 Prototype: string fread ( resource $handle [, int $length] );
31 $data_from_file = fread($file_handle, $read_size);
47 echo "*** Testing fread() : usage variations ***\n";
56 echo "\n-- Testing fread() with file having content of type ". $file_content_type ." --\n";
58 /* open the file using $files_modes and perform fread() on it */
87 // try fread when file pointer at end
105 *** Testing fread() : usage variations ***
107 -- Testing fread() with file having content of type numeric --
262 -- Testing fread() with file having content of type text --
[all …]
H A Dbug81223.phpt13 var_dump(fread($stream2, 5));
15 var_dump(fread($stream2, 4));
20 Notice: fread(): read of %d bytes failed with errno=13 Permission denied in %s on line %d
23 Notice: fread(): read of %d bytes failed with errno=13 Permission denied in %s on line %d
H A Dfread_socket_variation1.phpt2 Testing fread() on a TCP server socket
17 var_dump(fread($server, 1));
H A Dfseek_variation3.phpt24 echo "after -4 seek: ".bin2hex(fread($h,1))."\n";
26 echo "after seek back 1: ".bin2hex(fread($h,1))."\n";
28 echo "after seek back 20: ".bin2hex(fread($h,1))."\n";
34 $data = fread($h, 4096);
H A Dfclose_variation1.phpt10 echo fread($s2, strlen("<?php"));
13 Warning: fread(): supplied resource is not a valid stream resource in %s on line %d
H A Dbug41815.phpt11 fread($reader, 1);
14 if (strlen(fread($reader, 10)) > 0) {
H A Dfopen_unlink.phpt13 fread($f, 16),
16 fread($f, 16),
/PHP-7.4/ext/iconv/tests/
H A Diconv_stream_filter_delimiter.phpt10 var_dump(bin2hex(fread($fp, 10)));
11 var_dump(bin2hex(fread($fp, 5)));
12 var_dump(bin2hex(fread($fp, 1)));
17 var_dump(bin2hex(fread($fp, 10)));
18 var_dump(bin2hex(fread($fp, 5)));
19 var_dump(bin2hex(fread($fp, 1)));
24 var_dump(bin2hex(fread($fp, 10)));
25 var_dump(bin2hex(fread($fp, 5)));
26 var_dump(bin2hex(fread($fp, 1)));
32 var_dump(bin2hex(fread($fp, 5)));
[all …]
H A Diconv_stream_filter.phpt10 var_dump(bin2hex(fread($fp, 10)));
11 var_dump(bin2hex(fread($fp, 5)));
12 var_dump(bin2hex(fread($fp, 1)));
17 var_dump(bin2hex(fread($fp, 10)));
18 var_dump(bin2hex(fread($fp, 5)));
19 var_dump(bin2hex(fread($fp, 1)));
25 var_dump(bin2hex(@fread($fp, 10)) != "a4b3a4f3a4cba4c1a4cf");
26 var_dump(bin2hex(fread($fp, 5)) != "69636f6e76");
27 var_dump(bin2hex(fread($fp, 1)) != "0a");
/PHP-7.4/ext/spl/tests/
H A Dbug65545.phpt2 SplFileObject::fread function
6 $data = $obj->fread(5);
9 $data = $obj->fread();
12 $data = $obj->fread(0);
16 $data = $obj->fread(filesize(__FILE__) + 32);
23 Warning: SplFileObject::fread() expects exactly 1 parameter, 0 given in %s on line %d
26 Warning: SplFileObject::fread(): Length parameter must be greater than 0 in %s on line %d
/PHP-7.4/ext/phar/tests/
H A Dphar_stub.phpt24 echo fread($fp, strlen($file)) . "\n";
32 echo fread($fp, strlen($file)) . "\n";
47 echo fread($fp, strlen($file)) . "\n";
62 echo fread($fp, strlen($file)) . "\n";
63 if (fread($fp, strlen('booya')) == 'booya') {
71 echo fread($fp, strlen($file)) . "\n";
72 if (fread($fp, strlen('booya')) == 'booya') {
H A Dbug70091.phpt17 $data = fread($stream, 8);
21 $data = fread($stream, 8);
25 $data = fread($stream, 10);
29 $data = fread($stream, 10);
/PHP-7.4/ext/bz2/tests/
H A Dbug71263.phpt2 Bug #71263: fread() does not detects decoding errors from filter bzip2.decompress
19 // --> fread() displays empty string then garbage, no errors detected:
24 // --> fread() displays the empty string:
29 // --> fread() displays an empty string, then the correct plain text, no error detected:
38 $s = fread($r, 100);
/PHP-7.4/ext/zip/examples/
H A Dfopen.php12 $contents .= fread($fp, 2);
28 $contents .= fread($fp, 2);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug68948.phpt12 var_dump(fread($stream, 10));
18 var_dump(fread($stream, 11));
H A Dproc_open_bug60120.phpt73 ] .= fread($ready, 8192);
85 fread($pipes[1], 1),
86 fread($pipes[2], 1));
H A Dbug69521.phpt16 fread($link, 1000);
30 echo fread($fp, 4);
/PHP-7.4/ext/zlib/tests/
H A Dzlib_filter_inflate2.phpt14 echo fread($fp, 2000);
22 echo fread($fp, 2000);
28 echo fread($fp, 2000);
H A Dbug_52944.phpt17 var_dump(fread($fp,1));
18 var_dump(fread($fp,1));
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_x509_check_private_key_basic.phpt8 $a = fread($fp, 8192);
12 $b = fread($fp, 8192);
H A Dopenssl_x509_verify.phpt8 $a = fread($fp, 8192);
12 $b = fread($fp, 8192);
/PHP-7.4/ext/zip/tests/
H A Dbug49072.phpt18 $s .= fread($r,1024);
22 Warning: fread(): Zip stream error: CRC error in %s on line %d

Completed in 63 milliseconds

123456789