/PHP-7.4/ext/standard/tests/image/ |
H A D | bug70096.phpt | 17 $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 D | bug21478.phpt | 18 $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 D | bug67429_1.phpt | 17 $fp = php_cli_server_connect(); 19 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp);
|
H A D | bug67429_2.phpt | 17 $fp = php_cli_server_connect(); 19 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp);
|
H A D | bug66830.phpt | 16 $fp = php_cli_server_connect(); 18 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp);
|
H A D | php_cli_server_018.phpt | 16 $fp = php_cli_server_connect(); 18 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp);
|
H A D | bug68745.phpt | 13 $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 D | php_cli_server_017.phpt | 16 $fp = php_cli_server_connect(); 18 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp);
|
H A D | bug61679.phpt | 16 $fp = php_cli_server_connect(); 20 if(fwrite($fp, <<<HEADER 27 while (!feof($fp)) { 28 echo fgets($fp); 35 fclose($fp);
|
H A D | bug65633.phpt | 16 $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 D | fprintf_variation_004.phpt | 10 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 D | fprintf_variation_005.phpt | 10 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 D | fprintf_variation_003.phpt | 14 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 D | fprintf_variation_003_64bit.phpt | 14 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 D | fprintf_variation_006.phpt | 14 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 D | fprintf_variation_006_64bit.phpt | 14 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 D | fprintf_variation_007.phpt | 14 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 D | fprintf_variation_007_64bit.phpt | 14 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 D | bug20134.phpt | 6 $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 D | bug69521.phpt | 8 $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 D | gd_gif_out.c | 346 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 D | stream_filter_remove_basic.phpt | 21 $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 D | basic.phpt | 11 $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 D | hash_update_stream.phpt | 7 $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 D | bug_52944.phpt | 15 $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);
|