Home
last modified time | relevance | path

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

123456789

/php-src/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-src/ext/standard/tests/file/
H A Dfread_error.phpt2 Test fread() function : error conditions
10 echo "-- Testing fread() with invalid length arguments --\n";
13 var_dump( fread($file_handle, $len) );
20 var_dump( fread($file_handle, $len) );
28 -- Testing fread() with invalid length arguments --
29 fread(): Argument #2 ($length) must be greater than 0
30 fread(): Argument #2 ($length) must be greater than 0
H A Dfread_fwrite_basic.phpt2 fread & fwrite - Test reading and writing using a single resource
21 echo "start:".fread($h, strlen($out1) - 5). "\n";
23 echo "at end:".fread($h,100)."\n";
28 echo "final:".fread($h, 100)."\n";
33 fread($h,1024);
35 fread($h,1);
40 fread($h,1);
43 echo "last bytes: ".fread($h, strlen($out))."\n";
H A Dfread_variation4.phpt2 Test fread() function : usage variations - read beyond file size, write only mode
23 $data_from_file = fread($file_handle, $read_size);
39 echo "*** Testing fread() : usage variations ***\n";
48 echo "\n-- Testing fread() with file having content of type ". $file_content_type ." --\n";
50 /* open the file using $files_modes and perform fread() on it */
79 // try fread when file pointer at end
97 *** Testing fread() : usage variations ***
99 -- Testing fread() with file having content of type numeric --
105 Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
254 -- Testing fread() with file having content of type text --
[all …]
H A Dfread_variation2.phpt2 Test fread() function : usage variations - read some/all chars, write only mode (Bug #42036)
25 $data_from_file = fread($file_handle, $read_size);
42 echo "*** Testing fread() : usage variations ***\n";
51 echo "\n-- Testing fread() with file having content of type ". $file_content_type ." --\n";
53 /* open the file using $files_modes and perform fread() on it */
99 *** Testing fread() : usage variations ***
101 -- Testing fread() with file having content of type numeric --
107 Notice: fread(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
274 -- Testing fread() with file having content of type text --
447 -- Testing fread() with file having content of type text_with_new_line --
[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 Dfseek_variation3.phpt18 echo "after -4 seek: ".bin2hex(fread($h,1))."\n";
20 echo "after seek back 1: ".bin2hex(fread($h,1))."\n";
22 echo "after seek back 20: ".bin2hex(fread($h,1))."\n";
28 $data = fread($h, 4096);
H A Dfread_socket_variation1.phpt2 Testing fread() on a TCP server socket
17 var_dump(fread($server, 1));
H A Dfclose_variation1.phpt11 echo fread($s2, strlen("<?php"));
18 fread(): supplied resource is not a valid stream resource
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-src/ext/standard/tests/streams/
H A Dbug51056.phpt2 Bug #51056 (fread() on blocking stream will block even if data is available)
29 $data = fread($fp, 256);
32 printf("fread read %d bytes\n", $bytes);
42 fread read 8 bytes
43 fread read 256 bytes
44 fread read 45 bytes
45 fread read 8 bytes
H A Dbug68948.phpt12 var_dump(fread($stream, 10));
18 var_dump(fread($stream, 11));
H A Dgh8472.phpt29 var_dump(fread($res, 4));
30 var_dump(fread($res, 4));
H A Dproc_open_bug60120.phpt73 ] .= fread($ready, 8192);
85 fread($pipes[1], 1),
86 fread($pipes[2], 1));
/php-src/ext/spl/tests/SplFileObject/
H A Dbug65545.phpt2 SplFileObject::fread function
6 $data = $obj->fread(5);
10 $data = $obj->fread(0);
17 $data = $obj->fread(filesize(__FILE__) + 32);
23 SplFileObject::fread(): Argument #1 ($length) must be greater than 0
/php-src/ext/bz2/tests/
H A Dbug71263.phpt2 Bug #71263: fread() does not report bzip2.decompress errors
17 // --> fread() displays empty string then garbage, no errors detected:
22 // --> fread() displays the empty string:
27 // --> fread() displays an empty string, then the correct plain text, no error detected:
36 $s = fread($r, 100);
50 Notice: fread(): bzip2 decompression failed in %s on line %d
56 Notice: fread(): bzip2 decompression failed in %s on line %d
/php-src/ext/phar/tests/
H A Dbug70091.phpt15 $data = fread($stream, 8);
19 $data = fread($stream, 8);
23 $data = fread($stream, 10);
27 $data = fread($stream, 10);
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";
70 echo fread($fp, strlen($file)) . "\n";
80 echo fread($fp, strlen($file)) . "\n";
81 if (fread($fp, strlen('booya')) == 'booya') {
89 echo fread($fp, strlen($file)) . "\n";
90 if (fread($fp, strlen('booya')) == 'booya') {
/php-src/ext/zip/tests/
H A Doo_stream_seek.phpt23 var_dump(fread($fp, 2));
26 var_dump(fread($fp, 2));
37 var_dump(fread($fp, 2));
48 var_dump(fread($fp, 2));
51 var_dump(fread($fp, 2));
/php-src/ext/zlib/tests/
H A Dzlib_filter_inflate2.phpt14 echo fread($fp, 2000);
22 echo fread($fp, 2000);
28 echo fread($fp, 2000);
37 Notice: fread(): zlib: data error in %s on line %d
H A Dbug_52944.phpt17 var_dump(fread($fp,1));
18 var_dump(fread($fp,1));
23 Notice: fread(): zlib: data error in %s on line %d
/php-src/ext/zip/examples/
H A Dfopen.php12 $contents .= fread($fp, 2);
28 $contents .= fread($fp, 2);
/php-src/ext/openssl/tests/
H A Dopenssl_x509_check_private_key_basic.phpt8 $a = fread($fp, 8192);
12 $b = fread($fp, 8192);

Completed in 34 milliseconds

123456789