/PHP-7.4/ext/standard/tests/file/ |
H A D | fread_error.phpt | 2 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 D | fread_fwrite_basic.phpt | 2 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 D | fread_variation2.phpt | 2 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 D | fread_variation4.phpt | 2 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 D | bug81223.phpt | 13 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 D | fread_socket_variation1.phpt | 2 Testing fread() on a TCP server socket 17 var_dump(fread($server, 1));
|
H A D | fseek_variation3.phpt | 24 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 D | fclose_variation1.phpt | 10 echo fread($s2, strlen("<?php")); 13 Warning: fread(): supplied resource is not a valid stream resource in %s on line %d
|
H A D | bug41815.phpt | 11 fread($reader, 1); 14 if (strlen(fread($reader, 10)) > 0) {
|
H A D | fopen_unlink.phpt | 13 fread($f, 16), 16 fread($f, 16),
|
/PHP-7.4/ext/iconv/tests/ |
H A D | iconv_stream_filter_delimiter.phpt | 10 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 D | iconv_stream_filter.phpt | 10 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 D | bug65545.phpt | 2 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 D | phar_stub.phpt | 24 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 D | bug70091.phpt | 17 $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 D | bug71263.phpt | 2 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 D | fopen.php | 12 $contents .= fread($fp, 2); 28 $contents .= fread($fp, 2);
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug68948.phpt | 12 var_dump(fread($stream, 10)); 18 var_dump(fread($stream, 11));
|
H A D | proc_open_bug60120.phpt | 73 ] .= fread($ready, 8192); 85 fread($pipes[1], 1), 86 fread($pipes[2], 1));
|
H A D | bug69521.phpt | 16 fread($link, 1000); 30 echo fread($fp, 4);
|
/PHP-7.4/ext/zlib/tests/ |
H A D | zlib_filter_inflate2.phpt | 14 echo fread($fp, 2000); 22 echo fread($fp, 2000); 28 echo fread($fp, 2000);
|
H A D | bug_52944.phpt | 17 var_dump(fread($fp,1)); 18 var_dump(fread($fp,1));
|
/PHP-7.4/ext/openssl/tests/ |
H A D | openssl_x509_check_private_key_basic.phpt | 8 $a = fread($fp, 8192); 12 $b = fread($fp, 8192);
|
H A D | openssl_x509_verify.phpt | 8 $a = fread($fp, 8192); 12 $b = fread($fp, 8192);
|
/PHP-7.4/ext/zip/tests/ |
H A D | bug49072.phpt | 18 $s .= fread($r,1024); 22 Warning: fread(): Zip stream error: CRC error in %s on line %d
|