Home
last modified time | relevance | path

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

12345678910>>...24

/php-src/ext/standard/tests/strings/
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);
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-src/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-src/ext/standard/tests/streams/
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");
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-src/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 Dgh12363.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_017.phpt16 $fp = php_cli_server_connect();
18 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
/php-src/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-src/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-src/ext/openssl/tests/
H A Dgh13860.phpt33 $fp = stream_socket_client($serverUri);
34 stream_set_blocking($fp, false);
36 fread($fp, 2);
39 while (!($in = fread($fp, 2))) {
43 var_dump(feof($fp));
44 fclose($fp);
H A Dbug72333.phpt17 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
19 $conn = stream_socket_accept($fp);
44 …$fp = stream_socket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN…
45 stream_set_blocking($fp, false);
47 function blocking_fwrite($fp, $buf) {
48 $write = [$fp];
51 $result = fwrite($fp, $buf);
63 blocking_fwrite($fp, $str1);
/php-src/ext/standard/tests/network/
H A Dbug20134.phpt8 $fp = fsockopen("udp://localhost", 65534, $errno, $errstr);
9 if (!$fp) {
16 $x = fwrite($fp,"\n");
19 $content = fread($fp, 40);
21 fclose($fp);
/php-src/ext/fileinfo/tests/
H A Dfinfo_file_001.phpt8 $fp = finfo_open();
10 var_dump(finfo_file($fp, "\0"));
15 var_dump(finfo_file($fp, ''));
19 var_dump(finfo_file($fp, '.'));
20 var_dump(finfo_file($fp, '&'));

Completed in 26 milliseconds

12345678910>>...24