/php-src/ext/standard/tests/strings/ |
H A D | fprintf_variation_009.phpt | 11 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 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-src/ext/phar/tests/zip/files/ |
H A D | make_invalid_tar.php.inc | 7 $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 D | bug72221.phpt | 5 $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 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-src/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 | gh12363.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_017.phpt | 16 $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 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-src/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-src/ext/openssl/tests/ |
H A D | gh13860.phpt | 33 $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 D | bug72333.phpt | 17 $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 D | bug20134.phpt | 8 $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 D | finfo_file_001.phpt | 8 $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, '&'));
|