Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-7.3/ext/standard/tests/strings/
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 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 Dfprintf_variation_001.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() with floats ***\n");
26 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
28 fprintf( $fp, "\n");
29 fprintf( $fp, $float_var, $float_num );
34 fclose($fp);
H A Dfprintf_variation_002.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() with integers ***\n");
25 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
27 fprintf( $fp, "\n");
28 fprintf( $fp, $int_var, $int_num );
33 fclose($fp);
H A Dfprintf_variation_009.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() for string types ***\n");
25 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
27 fprintf( $fp, "\n");
28 fprintf( $fp, $string_var, $str );
33 fclose($fp);
H A Dfprintf_variation_004.phpt6 if (!($fp = fopen($data_file, 'w'))) {
17 if (!($fp = fopen($data_file, 'wt')))
21 fprintf($fp, "\n*** Testing fprintf() for chars ***\n");
23 fprintf( $fp, "\n");
24 fprintf( $fp,"%c", $char );
27 fclose($fp);
/PHP-7.3/ext/standard/tests/file/
H A Dstream_get_line.phpt8 $fp = fopen($path, "r");
9 while ($fp && !feof($fp)) {
10 echo stream_get_line($fp, 0, "<br>")."\n";
12 fclose($fp);
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.3/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);
/PHP-7.3/ext/exif/tests/
H A Dexif_read_data_streams_seek.phpt10 $fp = fopen(__DIR__ . '/image027.tiff', 'rb');
12 fseek($fp, 100, SEEK_SET);
14 exif_read_data($fp);
16 var_dump(ftell($fp) === 100);
18 fclose($fp);
/PHP-7.3/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_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);
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);
/PHP-7.3/ext/openssl/tests/
H A Dopenssl_x509_check_private_key_basic.phpt7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r");
8 $a = fread($fp, 8192);
9 fclose($fp);
11 $fp = fopen(dirname(__FILE__) . "/private_rsa_1024.key","r");
12 $b = fread($fp, 8192);
13 fclose($fp);
/PHP-7.3/sapi/cli/tests/
H A Dbug66830.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
23 if(fwrite($fp, <<<HEADER
30 while (!feof($fp)) {
31 echo fgets($fp);
35 fclose($fp);
H A Dphp_cli_server_018.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
23 if(fwrite($fp, <<<HEADER
30 while (!feof($fp)) {
31 echo fgets($fp);
35 fclose($fp);
H A Dphp_cli_server_014.phpt20 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
21 if (!$fp) {
25 if(fwrite($fp, <<<HEADER
36 while (!feof($fp)) {
37 $output .= fgets($fp);
41 fclose($fp);
43 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
44 if(fwrite($fp, <<<HEADER
55 while (!feof($fp)) {
56 $output .= fgets($fp);
[all …]
H A Dbug68745.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
20 if(fwrite($fp, "GET www.example.com:80 HTTP/1.1\r\n\r\n")) {
21 while (!feof($fp)) {
22 echo fgets($fp);
26 fclose($fp);
/PHP-7.3/ext/gd/libgd/
H A Dgd_gif_out.c332 gdPutC( B, fp ); in GIFEncode()
342 gdPutC( 0, fp ); in GIFEncode()
357 gdPutC( '!', fp ); in GIFEncode()
358 gdPutC( 0xf9, fp ); in GIFEncode()
359 gdPutC( 4, fp ); in GIFEncode()
360 gdPutC( 1, fp ); in GIFEncode()
361 gdPutC( 0, fp ); in GIFEncode()
362 gdPutC( 0, fp ); in GIFEncode()
364 gdPutC( 0, fp ); in GIFEncode()
370 gdPutC( ',', fp ); in GIFEncode()
[all …]
/PHP-7.3/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);

Completed in 28 milliseconds

12345678910>>...37