Home
last modified time | relevance | path

Searched refs:fp (Results 76 – 100 of 624) sorted by relevance

12345678910>>...25

/PHP-7.4/ext/standard/tests/image/
H A Dbug70096.phpt17 $fp = fopen($filename, "wb");
18 fwrite($fp, $content1);
19 fclose($fp);
21 $fp = fopen($filename, "wb");
22 fwrite($fp, $content2);
23 fclose($fp);
/PHP-7.4/Zend/tests/
H A Dbug21478.phpt18 $fp = fopen(__DIR__."/test.txt","w");
19 stream_filter_append($fp, "myfilter");
20 stream_filter_append($fp, "myfilter");
21 stream_filter_append($fp, "myfilter");
22 fwrite($fp, "This is a test.\n");
24 fclose($fp);
/PHP-7.4/sapi/cli/tests/
H A Dbug67429_1.phpt17 $fp = php_cli_server_connect();
19 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
H A Dbug67429_2.phpt17 $fp = php_cli_server_connect();
19 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
H A Dbug66830.phpt16 $fp = php_cli_server_connect();
18 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
H A Dphp_cli_server_018.phpt16 $fp = php_cli_server_connect();
18 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
H A Dbug68745.phpt13 $fp = php_cli_server_connect();
15 if(fwrite($fp, "GET www.example.com:80 HTTP/1.1\r\n\r\n")) {
16 while (!feof($fp)) {
17 echo fgets($fp);
21 fclose($fp);
H A Dphp_cli_server_017.phpt16 $fp = php_cli_server_connect();
18 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
H A Dbug61679.phpt16 $fp = php_cli_server_connect();
20 if(fwrite($fp, <<<HEADER
27 while (!feof($fp)) {
28 echo fgets($fp);
35 fclose($fp);
H A Dbug65633.phpt16 $fp = php_cli_server_connect();
18 if(fwrite($fp, <<<HEADER
26 while (!feof($fp)) {
27 echo fgets($fp);
31 fclose($fp);
/PHP-7.4/ext/standard/tests/strings/
H A Dfprintf_variation_004.phpt10 if (!($fp = fopen($data_file, 'wt')))
14 fprintf($fp, "\n*** Testing fprintf() for chars ***\n");
16 fprintf( $fp, "\n");
17 fprintf( $fp,"%c", $char );
20 fclose($fp);
H A Dfprintf_variation_005.phpt10 if (!($fp = fopen($data_file, 'wt')))
14 fprintf($fp, "\n*** Testing fprintf() for scientific type ***\n");
16 fprintf( $fp, "\n");
17 fprintf( $fp, "%e", $num );
20 fclose($fp);
H A Dfprintf_variation_003.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%b", $bin_num );
24 fclose($fp);
H A Dfprintf_variation_003_64bit.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%b", $bin_num );
24 fclose($fp);
H A Dfprintf_variation_006.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() for unsigned integers ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%u", $unsig_num );
24 fclose($fp);
H A Dfprintf_variation_006_64bit.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() for unsigned integers ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%u", $unsig_num );
24 fclose($fp);
H A Dfprintf_variation_007.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() for octals ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%o", $octal_num );
24 fclose($fp);
H A Dfprintf_variation_007_64bit.phpt14 if (!($fp = fopen($data_file, 'wt')))
18 fprintf($fp, "\n*** Testing fprintf() for octals ***\n");
20 fprintf( $fp, "\n");
21 fprintf( $fp, "%o", $octal_num );
24 fclose($fp);
/PHP-7.4/ext/standard/tests/network/
H A Dbug20134.phpt6 $fp = fsockopen("udp://localhost", 65534, $errno, $errstr);
7 if (!$fp) {
14 $x = fwrite($fp,"\n");
17 $content = fread($fp, 40);
19 fclose($fp);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug69521.phpt8 $fp = stream_socket_client($serverUri, $errNumber, $errString, 5, STREAM_CLIENT_CONNECT);
13 $written += fwrite($fp, substr($data, $written, 100));
20 while (!feof($fp))
22 $read = $write = array($fp);
30 echo fread($fp, 4);
/PHP-7.4/ext/gd/libgd/
H A Dgd_gif_out.c346 gdPutC( B, fp ); in GIFEncode()
356 gdPutC( 0, fp ); in GIFEncode()
371 gdPutC( '!', fp ); in GIFEncode()
372 gdPutC( 0xf9, fp ); in GIFEncode()
373 gdPutC( 4, fp ); in GIFEncode()
374 gdPutC( 1, fp ); in GIFEncode()
375 gdPutC( 0, fp ); in GIFEncode()
376 gdPutC( 0, fp ); in GIFEncode()
378 gdPutC( 0, fp ); in GIFEncode()
384 gdPutC( ',', fp ); in GIFEncode()
[all …]
/PHP-7.4/ext/standard/tests/filters/
H A Dstream_filter_remove_basic.phpt21 $fp = fopen( $file, 'w+' );
23 $filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE );
24 fwrite( $fp, "Testing the rot13 filter which shifts some things around." );
27 fwrite( $fp, "\nadd some more un-filtered foobar\n" );
29 rewind( $fp );
30 fpassthru( $fp );
31 fclose( $fp );
H A Dbasic.phpt11 $fp = tmpfile();
12 fwrite($fp, $GLOBALS["text"]);
13 rewind($fp);
16 var_dump(stream_filter_prepend($fp, $name));
18 var_dump(fgets($fp));
19 fclose($fp);
/PHP-7.4/ext/hash/tests/
H A Dhash_update_stream.phpt7 $fp = tmpfile();
8 fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
9 rewind($fp);
12 hash_update_stream($ctx, $fp);
/PHP-7.4/ext/zlib/tests/
H A Dbug_52944.phpt15 $fp = fopen('data://text/plain;base64,' . $data, 'r');
16 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
17 var_dump(fread($fp,1));
18 var_dump(fread($fp,1));
19 fclose($fp);

Completed in 51 milliseconds

12345678910>>...25