Home
last modified time | relevance | path

Searched refs:fp (Results 51 – 75 of 624) sorted by relevance

12345678910>>...25

/PHP-7.4/ext/standard/tests/file/
H A Duserfilters.phpt25 $fp = tmpfile();
26 fwrite($fp, $text);
28 rewind($fp);
29 stream_filter_append($fp, 'testfilter', STREAM_FILTER_READ, 'testuserfilter');
31 var_dump(fgets($fp));
32 fclose($fp);
H A Dbug37158.phpt18 $fp = fopen($file, 'w');
20 fwrite($fp, $x);
22 fclose($fp);
24 $fp = fopen($file, 'r');
25 $outsidecontents = fread($fp, 20000);
26 fclose($fp);
/PHP-7.4/ext/standard/tests/strings/
H A Dvfprintf_basic7_64bit.phpt27 if (!($fp = fopen($data_file, 'wt')))
30 vfprintf($fp, $format1,$arg1);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format2,$arg2);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format3,$arg3);
37 fprintf($fp, "\n");
39 fclose($fp);
H A Dvfprintf_basic2.phpt27 if (!($fp = fopen($data_file, 'wt')))
30 vfprintf($fp, $format1, $arg1);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format2, $arg2);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format3, $arg3);
37 fprintf($fp, "\n");
39 fclose($fp);
H A Dvfprintf_basic4.phpt23 if (!($fp = fopen($data_file, 'wt')))
26 vfprintf($fp, $format1,$arg1);
27 fprintf($fp, "\n");
29 vfprintf($fp, $format2,$arg2);
30 fprintf($fp, "\n");
32 vfprintf($fp, $format3,$arg3);
33 fprintf($fp, "\n");
35 fclose($fp);
H A Dvfprintf_basic5.phpt23 if (!($fp = fopen($data_file, 'wt')))
26 vfprintf($fp, $format1,$arg1);
27 fprintf($fp, "\n");
29 vfprintf($fp, $format2,$arg2);
30 fprintf($fp, "\n");
32 vfprintf($fp, $format3,$arg3);
33 fprintf($fp, "\n");
35 fclose($fp);
H A Dvfprintf_basic6.phpt24 if (!($fp = fopen($data_file, 'wt')))
27 vfprintf($fp, $format1,$arg1);
28 fprintf($fp, "\n");
30 vfprintf($fp, $format2,$arg2);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format3,$arg3);
34 fprintf($fp, "\n");
36 fclose($fp);
H A Dvfprintf_basic7.phpt27 if (!($fp = fopen($data_file, 'wt')))
30 vfprintf($fp, $format1,$arg1);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format2,$arg2);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format3,$arg3);
37 fprintf($fp, "\n");
39 fclose($fp);
H A Dfprintf_variation_001.phpt11 if (!($fp = fopen($data_file, 'wt')))
16 fprintf($fp, "\n*** Testing fprintf() with floats ***\n");
19 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
21 fprintf( $fp, "\n");
22 fprintf( $fp, $float_var, $float_num );
27 fclose($fp);
H A Dfprintf_variation_002.phpt11 if (!($fp = fopen($data_file, 'wt')))
16 fprintf($fp, "\n*** Testing fprintf() with integers ***\n");
18 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
20 fprintf( $fp, "\n");
21 fprintf( $fp, $int_var, $int_num );
26 fclose($fp);
H A Dfprintf_variation_009.phpt11 if (!($fp = fopen($data_file, 'wt')))
16 fprintf($fp, "\n*** Testing fprintf() for string types ***\n");
18 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
20 fprintf( $fp, "\n");
21 fprintf( $fp, $string_var, $str );
26 fclose($fp);
/PHP-7.4/ext/zip/tests/
H A Dstream_meta_data.phpt16 $fp = $zip->getStream('foo');
18 if(!$fp) exit("\n");
20 var_dump(stream_get_meta_data($fp));
22 fclose($fp);
26 $fp = fopen('zip://' . __DIR__ . '/test_with_comment.zip#foo', 'rb');
27 if (!$fp) {
31 var_dump(stream_get_meta_data($fp));
32 fclose($fp);
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_x509_check_private_key_basic.phpt7 $fp = fopen(__DIR__ . "/cert.crt","r");
8 $a = fread($fp, 8192);
9 fclose($fp);
11 $fp = fopen(__DIR__ . "/private_rsa_1024.key","r");
12 $b = fread($fp, 8192);
13 fclose($fp);
H A Dopenssl_x509_verify.phpt7 $fp = fopen(__DIR__ . "/cert.crt","r");
8 $a = fread($fp, 8192);
9 fclose($fp);
11 $fp = fopen(__DIR__ . "/public.key","r");
12 $b = fread($fp, 8192);
13 fclose($fp);
/PHP-7.4/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation2.phpt8 $fp = fopen($filename, "w+");
13 fwrite($fp, "a line of data\n");
16 var_dump(stream_get_meta_data($fp));
19 rewind($fp);
22 var_dump(fgets($fp));
24 var_dump(stream_get_meta_data($fp));
27 fread($fp, 20);
29 var_dump(stream_get_meta_data($fp));
32 while(!feof($fp)) {
33 fread($fp, 1);
[all …]
H A Dstream_get_meta_data_file_variation5.phpt8 $fp = fopen($filename, "w+");
13 fwrite($fp, "a line of data\n");
16 var_dump(stream_get_meta_data($fp));
19 rewind($fp);
22 while(!feof($fp)) {
23 fread($fp, 1);
26 var_dump(stream_get_meta_data($fp));
28 fclose($fp);
H A Dbug72221.phpt5 $fp = fopen("php://memory", "r+");
6 fwrite($fp, str_repeat("baad", 1024*1024));
7 rewind($fp);
8 stream_get_line($fp, 1024*1024*2, "aaaa");
/PHP-7.4/ext/bz2/tests/
H A Dbug72613.phpt7 $fp = bzopen(__DIR__.'/72613.bz2', 'r');
8 if ($fp === FALSE) {
12 while (!feof($fp)) {
13 $res = bzread($fp);
19 bzclose($fp);
H A Dbz2_filter_decompress.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'bzip2.decompress', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
H A Dbz2_filter_compress.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
/PHP-7.4/sapi/cli/tests/
H A Dphp_cli_server_014.phpt14 $fp = php_cli_server_connect();
16 if(fwrite($fp, <<<HEADER
27 while (!feof($fp)) {
28 $output .= fgets($fp);
32 fclose($fp);
34 $fp = php_cli_server_connect();
35 if(fwrite($fp, <<<HEADER
46 while (!feof($fp)) {
47 $output .= fgets($fp);
52 fclose($fp);
/PHP-7.4/ext/zlib/tests/
H A Dzlib_filter_deflate.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
H A Dzlib_filter_inflate.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
/PHP-7.4/ext/phar/tests/zip/files/
H A Dmake_invalid_tar.php.inc7 $fp = fopen($this->path, 'r+b');
8 fseek($fp, 20);
9 fwrite($fp, 'oopsie');
10 fclose($fp);
/PHP-7.4/ext/fileinfo/tests/
H A Dfinfo_file_001.phpt8 $fp = finfo_open();
9 var_dump(finfo_file($fp, "\0"));
10 var_dump(finfo_file($fp, ''));
11 var_dump(finfo_file($fp, NULL));
12 var_dump(finfo_file($fp, '.'));
13 var_dump(finfo_file($fp, '&'));

Completed in 40 milliseconds

12345678910>>...25