Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-5.5/ext/standard/tests/strings/
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);
H A Dfprintf_variation_003_64bit.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%b", $bin_num );
28 fclose($fp);
/PHP-5.5/ext/zip/tests/
H A Dstream_meta_data.phpt17 $fp = $zip->getStream('foo');
19 if(!$fp) exit("\n");
21 var_dump(stream_get_meta_data($fp));
23 fclose($fp);
27 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
28 if (!$fp) {
32 var_dump(stream_get_meta_data($fp));
33 fclose($fp);
/PHP-5.5/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 Dfgetss.phpt20 $fp = fopen($filename, "r");
21 var_dump(fgetss($fp));
22 var_dump(fgetss($fp));
27 $fp = fopen($filename, "r");
28 var_dump(fgetss($fp, 10));
29 var_dump(fgetss($fp, 10));
32 var_dump(fgetss($fp, -10));
33 var_dump(fgetss($fp, 0));
34 fclose($fp);
35 var_dump(fgetss($fp, 0));
/PHP-5.5/ext/openssl/tests/
H A D009.phpt7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r");
8 $a = fread($fp,8192);
9 fclose($fp);
11 $fp = fopen(dirname(__FILE__) . "/private.key","r");
12 $b = fread($fp,8192);
13 fclose($fp);
/PHP-5.5/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-5.5/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-5.5/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);
H A Dbug65633.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
23 if(fwrite($fp, <<<HEADER
31 while (!feof($fp)) {
32 echo fgets($fp);
36 fclose($fp);
H A Dphp_cli_server_017.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);
/PHP-5.5/ext/zip/lib/
H A Dzip_open.c63 FILE *fp; in zip_open() local
102 len = ftello(fp); in _zip_open()
107 fclose(fp); in _zip_open()
109 za->zp = fp; in _zip_open()
115 fclose(fp); in _zip_open()
121 fclose(fp); in _zip_open()
126 za->zp = fp; in _zip_open()
248 clearerr(fp); in _zip_readcdir()
252 if (ferror(fp) || ((unsigned long)ftello(fp) != cd->offset)) { in _zip_readcdir()
254 if (ferror(fp)) in _zip_readcdir()
[all …]
/PHP-5.5/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 760 milliseconds

12345678910>>...37